summaryrefslogtreecommitdiff
path: root/fnl
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2024-01-07 11:31:01 +0100
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2024-01-07 11:31:01 +0100
commit92fc340de3d54bed8ac3da37a9aa0ae5b14b8b0c (patch)
tree8ae8f15c9e8bd76e2407b5bf37ca911871df9734 /fnl
parent35d58063cc888a0332dbde5a61537ab33437063d (diff)
Rename lspconfig fns
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