summaryrefslogtreecommitdiff
path: root/fnl
diff options
context:
space:
mode:
Diffstat (limited to 'fnl')
-rw-r--r--fnl/plugins/lsp/lspconfig.fnl8
1 files changed, 4 insertions, 4 deletions
diff --git a/fnl/plugins/lsp/lspconfig.fnl b/fnl/plugins/lsp/lspconfig.fnl
index 7ad960c..8cc5141 100644
--- a/fnl/plugins/lsp/lspconfig.fnl
+++ b/fnl/plugins/lsp/lspconfig.fnl
@@ -19,7 +19,7 @@
(tset opts :capabilities (capabilities))
(config.setup opts))))
-(fn mason-opts []
+(fn opts []
(let [servers (require :plugins.lsp.servers)]
{:ensure_installed (vim.tbl_keys servers)
:automatic_installation true
@@ -28,11 +28,11 @@
(fn config []
(on-attach)
(let [diagnostics (require :plugins.lsp.diagnostics)
- lspconfig-win (require :lspconfig.ui.windows)
+ ui (require :lspconfig.ui.windows)
mason-lspconfig (require :mason-lspconfig)]
(diagnostics.setup)
- (set lspconfig-win.default_options.border :single)
- (mason-lspconfig.setup (mason-opts))))
+ (set ui.default_options.border :single)
+ (mason-lspconfig.setup (opts))))
{1 :neovim/nvim-lspconfig
:event :BufReadPost