diff options
author | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2022-04-11 19:56:36 +0200 |
---|---|---|
committer | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2022-04-11 19:56:36 +0200 |
commit | c2f6208139dc6fb8f76fff806e6808ff4cceb0a9 (patch) | |
tree | 2a77ca58b06e54394bf1db46ad1e58181edde6a9 | |
parent | 903b92b2528d23267036a78fa92efd7a389833c4 (diff) |
refactor(lsp installer): rename lsp settings
-rw-r--r-- | fnl/config/lsp/lsp-installer.fnl | 8 | ||||
-rw-r--r-- | fnl/config/lsp/settings/pyright.fnl | 2 | ||||
-rw-r--r-- | fnl/config/lsp/settings/sumneko-lua.fnl | 2 |
3 files changed, 6 insertions, 6 deletions
diff --git a/fnl/config/lsp/lsp-installer.fnl b/fnl/config/lsp/lsp-installer.fnl index 9522ef1..72bef8e 100644 --- a/fnl/config/lsp/lsp-installer.fnl +++ b/fnl/config/lsp/lsp-installer.fnl @@ -10,11 +10,11 @@ (let [jsonls-opts (require :config.lsp.settings.jsonls)] (vim.tbl_deep_extend :force jsonls-opts opts))) (when (= server.name :sumneko_lua) - (let [sumneko-lua-opts (require :config.lsp.settings.sumneko-lua)] - (vim.tbl_deep_extend :force sumneko-lua-opts.settings opts))) + (let [sumneko-lua (require :config.lsp.settings.sumneko-lua)] + (vim.tbl_deep_extend :force sumneko-lua.opts opts))) (when (= server.name :pyright) - (let [pyright-opts (require :config.lsp.settings.pyright)] - (vim.tbl_deep_extend :force pyright-opts.settings opts))) opts) + (let [pyright (require :config.lsp.settings.pyright)] + (vim.tbl_deep_extend :force pyright.opts opts))) opts) (let [lsp-installer (util.load-plugin :nvim-lsp-installer)] (lsp-installer.on_server_ready (fn [server] diff --git a/fnl/config/lsp/settings/pyright.fnl b/fnl/config/lsp/settings/pyright.fnl index 7269469..639ecff 100644 --- a/fnl/config/lsp/settings/pyright.fnl +++ b/fnl/config/lsp/settings/pyright.fnl @@ -1,4 +1,4 @@ ;; Config for pyright language server. (module config.lsp.settings.pyright) -(def settings {:settings {:python {:analysis {:typeCheckingMode :off}}}}) +(def opts {:settings {:python {:analysis {:typeCheckingMode :off}}}}) diff --git a/fnl/config/lsp/settings/sumneko-lua.fnl b/fnl/config/lsp/settings/sumneko-lua.fnl index cc8e9ab..90c8807 100644 --- a/fnl/config/lsp/settings/sumneko-lua.fnl +++ b/fnl/config/lsp/settings/sumneko-lua.fnl @@ -20,4 +20,4 @@ (def- runtime {:version :LuaJIT :path (vim.split package.path ";")}) -(def settings {:settings {:Lua {: diagnostics : workspace}}}) +(def opts {:settings {:Lua {: diagnostics : workspace}}}) |