From 35d58063cc888a0332dbde5a61537ab33437063d Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Sun, 7 Jan 2024 01:35:58 +0100 Subject: Clean up lspconfig --- fnl/plugins/lsp/lspconfig.fnl | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'fnl/plugins/lsp/lspconfig.fnl') diff --git a/fnl/plugins/lsp/lspconfig.fnl b/fnl/plugins/lsp/lspconfig.fnl index 84c460f..7ad960c 100644 --- a/fnl/plugins/lsp/lspconfig.fnl +++ b/fnl/plugins/lsp/lspconfig.fnl @@ -19,7 +19,7 @@ (tset opts :capabilities (capabilities)) (config.setup opts)))) -(fn mason-opts [servers] +(fn mason-opts [] (let [servers (require :plugins.lsp.servers)] {:ensure_installed (vim.tbl_keys servers) :automatic_installation true @@ -32,8 +32,7 @@ mason-lspconfig (require :mason-lspconfig)] (diagnostics.setup) (set lspconfig-win.default_options.border :single) - (mason-lspconfig.setup (mason-opts)) - (mason-lspconfig.setup_handlers [setup-handler]))) + (mason-lspconfig.setup (mason-opts)))) {1 :neovim/nvim-lspconfig :event :BufReadPost -- cgit v1.2.3-70-g09d2