summaryrefslogtreecommitdiff
path: root/fnl
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2023-02-17 01:07:32 +0100
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2023-02-17 01:07:32 +0100
commitc6a5819851ce4954172593df9d51a898c35f5fcc (patch)
treea2a1acdb11ad23328ea4ae4fd1f8a94acf3fba0b /fnl
parentfe9ffeb17e4c90659d3ef461aeeaa77d30d7c223 (diff)
Add borders
Diffstat (limited to 'fnl')
-rw-r--r--fnl/plugins/core/lazy.fnl3
-rw-r--r--fnl/plugins/lsp/lspconfig.fnl19
-rw-r--r--fnl/plugins/lsp/mason.fnl3
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})