diff options
Diffstat (limited to 'fnl/plugins/lsp/lspconfig.fnl')
-rw-r--r-- | fnl/plugins/lsp/lspconfig.fnl | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/fnl/plugins/lsp/lspconfig.fnl b/fnl/plugins/lsp/lspconfig.fnl index 0b6ad79..cca52a4 100644 --- a/fnl/plugins/lsp/lspconfig.fnl +++ b/fnl/plugins/lsp/lspconfig.fnl @@ -4,8 +4,7 @@ (vim.api.nvim_create_autocmd :LspAttach {:callback (fn [args] (let [keymaps (require :plugins.lsp.keymaps) - buffer (. args :buf) - ] + buffer (. args :buf)] (keymaps.on-attach buffer)))})) (fn capabilities [] @@ -15,7 +14,7 @@ (fn mason-opts [servers] {:ensure_installed (vim.tbl_keys servers) :automatic_installation true}) -(fn setup [] +(fn config [] (let [diagnostics (require :plugins.lsp.diagnostics) lspconfig (require :lspconfig) lspconfig-win (require :lspconfig.ui.windows) @@ -40,5 +39,4 @@ :williamboman/mason-lspconfig.nvim :b0o/SchemaStore.nvim :hrsh7th/cmp-nvim-lsp] - :config (fn [] - (setup))} + : config} |