diff options
author | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2022-07-13 19:50:30 +0200 |
---|---|---|
committer | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2022-07-13 19:50:30 +0200 |
commit | 7327360ff60acdad5161754371cfc19851c16d6c (patch) | |
tree | 7df3563d60e98f8d611fa6bd986853891dfc6821 /fnl/config/lsp/lsp-installer.fnl | |
parent | 56466e4d0f0d61983656cddcb9737e54a66a86dd (diff) |
Add rust ls config
Diffstat (limited to 'fnl/config/lsp/lsp-installer.fnl')
-rw-r--r-- | fnl/config/lsp/lsp-installer.fnl | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/fnl/config/lsp/lsp-installer.fnl b/fnl/config/lsp/lsp-installer.fnl index 34a0520..9a3215a 100644 --- a/fnl/config/lsp/lsp-installer.fnl +++ b/fnl/config/lsp/lsp-installer.fnl @@ -41,11 +41,16 @@ (let [pyright (require :config.lsp.settings.pyright)] (vim.tbl_deep_extend :force pyright.opts (handler-opts)))) +(defn- rust-opts [] + (let [rust (require :config.lsp.settings.rust)] + (vim.tbl_deep_extend :force rust.opts (handler-opts)))) + (defn- get-server-opts [server] (match server :jsonls (jsonls-opts) :pyright (pyright-opts) :sumneko_lua (sumneko-lua-opts) + :rust_analyzer (rust-opts) _ (handler-opts))) (let [lsp-installer (util.load-plugin :nvim-lsp-installer) |