From 92fc340de3d54bed8ac3da37a9aa0ae5b14b8b0c Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Sun, 7 Jan 2024 11:31:01 +0100 Subject: Rename lspconfig fns --- fnl/plugins/lsp/lspconfig.fnl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'fnl') 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 -- cgit v1.2.3-70-g09d2