From 6dcd88cde5825573a3732e8b18f7d663ca47495b Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Sat, 23 Sep 2023 22:04:59 +0200 Subject: Rename setup to config --- fnl/plugins/lsp/lspconfig.fnl | 8 +++----- fnl/plugins/lsp/null-ls.fnl | 5 ++--- 2 files changed, 5 insertions(+), 8 deletions(-) (limited to 'fnl/plugins/lsp') 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} -- cgit v1.2.3-70-g09d2