From 7327360ff60acdad5161754371cfc19851c16d6c Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Wed, 13 Jul 2022 19:50:30 +0200 Subject: Add rust ls config --- fnl/config/lsp/lsp-installer.fnl | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'fnl/config/lsp/lsp-installer.fnl') 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) -- cgit v1.2.3-70-g09d2