summaryrefslogtreecommitdiff
path: root/fnl/plugins/lsp
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2023-09-23 22:04:59 +0200
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2023-09-23 22:04:59 +0200
commit6dcd88cde5825573a3732e8b18f7d663ca47495b (patch)
tree10edd9981f7d26afa0dd86ad7fa8e1c37db34e5b /fnl/plugins/lsp
parentcc8adce9d8a7dd63bc639b3e2d3e71d82ee1713f (diff)
Rename setup to config
Diffstat (limited to 'fnl/plugins/lsp')
-rw-r--r--fnl/plugins/lsp/lspconfig.fnl8
-rw-r--r--fnl/plugins/lsp/null-ls.fnl5
2 files changed, 5 insertions, 8 deletions
diff --git a/fnl/plugins/lsp/lspconfig.fnl b/fnl/plugins/lsp/lspconfig.fnl
index 0b6ad79..cca52a4 100644
--- a/fnl/plugins/lsp/lspconfig.fnl
+++ b/fnl/plugins/lsp/lspconfig.fnl
@@ -4,8 +4,7 @@
(vim.api.nvim_create_autocmd :LspAttach
{:callback (fn [args]
(let [keymaps (require :plugins.lsp.keymaps)
- buffer (. args :buf)
- ]
+ buffer (. args :buf)]
(keymaps.on-attach buffer)))}))
(fn capabilities []
@@ -15,7 +14,7 @@
(fn mason-opts [servers]
{:ensure_installed (vim.tbl_keys servers) :automatic_installation true})
-(fn setup []
+(fn config []
(let [diagnostics (require :plugins.lsp.diagnostics)
lspconfig (require :lspconfig)
lspconfig-win (require :lspconfig.ui.windows)
@@ -40,5 +39,4 @@
:williamboman/mason-lspconfig.nvim
:b0o/SchemaStore.nvim
:hrsh7th/cmp-nvim-lsp]
- :config (fn []
- (setup))}
+ : config}
diff --git a/fnl/plugins/lsp/null-ls.fnl b/fnl/plugins/lsp/null-ls.fnl
index c8e9039..5ef69d1 100644
--- a/fnl/plugins/lsp/null-ls.fnl
+++ b/fnl/plugins/lsp/null-ls.fnl
@@ -4,7 +4,7 @@
:automatic_installation true
:automatic_setup false})
-(fn setup []
+(fn config []
(let [null-ls (require :null-ls)
mason-null-ls (require :mason-null-ls)]
(let [formatting null-ls.builtins.formatting
@@ -40,5 +40,4 @@
:jayp0521/mason-null-ls.nvim
:nvim-lua/plenary.nvim]
:event :BufReadPost
- :config (fn []
- (setup))}
+ : config}