summaryrefslogtreecommitdiff
path: root/fnl/config
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2022-05-11 21:51:04 +0200
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2022-05-11 21:51:04 +0200
commita2990ce3f4e1cd1694cb648d0609c6c0e48a73f7 (patch)
treeb8309c4ac2a5113d1a9399add784fe8bc8f3a338 /fnl/config
parent9304b87476b7b0ef64564f20e87e79499eacb0bd (diff)
fix(lsp installer): fn to tbl
Diffstat (limited to 'fnl/config')
-rw-r--r--fnl/config/lsp/lsp-installer.fnl24
1 files changed, 12 insertions, 12 deletions
diff --git a/fnl/config/lsp/lsp-installer.fnl b/fnl/config/lsp/lsp-installer.fnl
index 0b9ebe4..7ff4bce 100644
--- a/fnl/config/lsp/lsp-installer.fnl
+++ b/fnl/config/lsp/lsp-installer.fnl
@@ -5,23 +5,23 @@
{:on_attach handlers.on-attach
:capabilities (handlers.capabilities)}))
-(defn- jsonls-opts []
- (let [jsonls-opts (require :config.lsp.settings.jsonls)]
- (vim.tbl_deep_extend :force jsonls-opts handler-opts)))
+(def- jsonls-opts
+ (let [jsonls-opts (require :config.lsp.settings.jsonls)]
+ (vim.tbl_deep_extend :force jsonls-opts handler-opts)))
-(defn- sumneko-lua-opts []
- (let [sumneko-lua (require :config.lsp.settings.sumneko-lua)]
- (vim.tbl_deep_extend :force sumneko-lua.opts handler-opts)))
+(def- sumneko-lua-opts
+ (let [sumneko-lua (require :config.lsp.settings.sumneko-lua)]
+ (vim.tbl_deep_extend :force sumneko-lua.opts handler-opts)))
-(defn- pyright-opts []
- (let [pyright (require :config.lsp.settings.pyright)]
- (vim.tbl_deep_extend :force pyright.opts handler-opts)))
+(def- pyright-opts
+ (let [pyright (require :config.lsp.settings.pyright)]
+ (vim.tbl_deep_extend :force pyright.opts handler-opts)))
(defn- get-server-opts [server]
(match server.name
- :jsonls (jsonls-opts)
- :pyright (pyright-opts)
- :sumneko_lua (sumneko-lua-opts)
+ :jsonls jsonls-opts
+ :pyright pyright-opts
+ :sumneko_lua sumneko-lua-opts
_ handler-opts))
(let [lsp-installer (util.load-plugin :nvim-lsp-installer)