diff options
Diffstat (limited to 'fnl')
-rw-r--r-- | fnl/plugins/core/lazy.fnl | 3 | ||||
-rw-r--r-- | fnl/plugins/lsp/lspconfig.fnl | 19 | ||||
-rw-r--r-- | fnl/plugins/lsp/mason.fnl | 3 |
3 files changed, 14 insertions, 11 deletions
diff --git a/fnl/plugins/core/lazy.fnl b/fnl/plugins/core/lazy.fnl index 5e5a98e..8c86de4 100644 --- a/fnl/plugins/core/lazy.fnl +++ b/fnl/plugins/core/lazy.fnl @@ -9,7 +9,8 @@ :tohtml :tutor :zipPlugin]}} - :ui {:icons {:cmd " " + :ui {:border :single + :icons {:cmd " " :config " " :event " " :ft " " diff --git a/fnl/plugins/lsp/lspconfig.fnl b/fnl/plugins/lsp/lspconfig.fnl index b2ee792..fc25a04 100644 --- a/fnl/plugins/lsp/lspconfig.fnl +++ b/fnl/plugins/lsp/lspconfig.fnl @@ -1,27 +1,28 @@ ;; Setup of lsps. (fn on-attach [] - (vim.api.nvim_create_autocmd :LspAttach - {:callback (fn [args] - (let [keymaps (require :plugins.lsp.keymaps) - bufnr (. args :buf)] - (keymaps.on-attach bufnr)))})) + (vim.api.nvim_create_autocmd :LspAttach + {:callback (fn [args] + (let [keymaps (require :plugins.lsp.keymaps) + bufnr (. args :buf)] + (keymaps.on-attach bufnr)))})) (fn capabilities [] - (let [cmp-lsp (require :cmp_nvim_lsp)] - (cmp-lsp.default_capabilities (vim.lsp.protocol.make_client_capabilities)))) + (let [cmp-lsp (require :cmp_nvim_lsp)] + (cmp-lsp.default_capabilities (vim.lsp.protocol.make_client_capabilities)))) (fn mason-opts [servers] - {:ensure_installed (vim.tbl_keys servers) :automatic_installation true}) + {:ensure_installed (vim.tbl_keys servers) :automatic_installation true}) (fn setup [] - (let [diagnostics (require :plugins.lsp.diagnostics) lspconfig (require :lspconfig) + lspconfig-win (require :lspconfig.ui.windows) mason-lspconfig (require :mason-lspconfig) servers (require :plugins.lsp.servers)] (diagnostics.setup) (on-attach) + (set lspconfig-win.default_options.border :single) (mason-lspconfig.setup (mason-opts servers)) (mason-lspconfig.setup_handlers [(fn [server-name] (let [server-config (. lspconfig diff --git a/fnl/plugins/lsp/mason.fnl b/fnl/plugins/lsp/mason.fnl index bf57de5..bc63e23 100644 --- a/fnl/plugins/lsp/mason.fnl +++ b/fnl/plugins/lsp/mason.fnl @@ -1,6 +1,7 @@ ;; Mason manages external tooling, e.g. lsp, formatters, and linters. -(local opts {:ui {:icons {:package_installed " " +(local opts {:ui {:border :single + :icons {:package_installed " " :package_pending " " :package_uninstalled " "}} :max_concurrent_installers 10}) |