diff options
Diffstat (limited to 'fnl/plugins/lsp')
-rw-r--r-- | fnl/plugins/lsp/lspconfig.fnl | 8 | ||||
-rw-r--r-- | fnl/plugins/lsp/null-ls.fnl | 5 |
2 files changed, 5 insertions, 8 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} diff --git a/fnl/plugins/lsp/null-ls.fnl b/fnl/plugins/lsp/null-ls.fnl index c8e9039..5ef69d1 100644 --- a/fnl/plugins/lsp/null-ls.fnl +++ b/fnl/plugins/lsp/null-ls.fnl @@ -4,7 +4,7 @@ :automatic_installation true :automatic_setup false}) -(fn setup [] +(fn config [] (let [null-ls (require :null-ls) mason-null-ls (require :mason-null-ls)] (let [formatting null-ls.builtins.formatting @@ -40,5 +40,4 @@ :jayp0521/mason-null-ls.nvim :nvim-lua/plenary.nvim] :event :BufReadPost - :config (fn [] - (setup))} + : config} |