From c6a5819851ce4954172593df9d51a898c35f5fcc Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Fri, 17 Feb 2023 01:07:32 +0100 Subject: Add borders --- fnl/plugins/lsp/lspconfig.fnl | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'fnl/plugins/lsp/lspconfig.fnl') 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 -- cgit v1.2.3-70-g09d2