From 47a5426235088bfecb5b3a9432ce9f2114031402 Mon Sep 17 00:00:00 2001 From: elkowar <5300871+elkowar@users.noreply.github.com> Date: Sun, 9 May 2021 13:44:23 +0200 Subject: [PATCH] yeet rust-tools for now --- files/.config/nvim/fnl/plugins/lsp.fnl | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/files/.config/nvim/fnl/plugins/lsp.fnl b/files/.config/nvim/fnl/plugins/lsp.fnl index b6e2c5e..6920c26 100644 --- a/files/.config/nvim/fnl/plugins/lsp.fnl +++ b/files/.config/nvim/fnl/plugins/lsp.fnl @@ -42,13 +42,8 @@ (set capabilities.textDocument.completion.completionItem.snippetSupport true) (set capabilities.textDocument.completion.completionItem.resolveSupport {:properties ["documentation" "detail" "additionalTextEdits"]}) - (lsp.rust_analyzer.setup - {:capabilities capabilities - :on_attach (fn [...] - (on_attach ...) - (pkg rust-tools.nvim [rust-tools (require "rust-tools")] - (rust-tools.setup { :tools { :inlay_hints { :show_parameter_hints false}}})))})) - + (init-lsp :rust_analyzer {:capabilities capabilities})) + (init-lsp :tsserver {:root_dir (lsp.util.root_pattern "package.json")}) (init-lsp :jsonls {:commands {:Format [ #(vim.lsp.buf.range_formatting [] [0 0] [(vim.fn.line "$") 0])]}}) (init-lsp :denols {:root_dir (better_root_pattern [".git"] ["package.json"])}) @@ -66,5 +61,8 @@ (set vim.o.signcolumn "yes") +;(let [rust-tools (require "rust-tools")] + ;(rust-tools.setup {:tools {:inlay_hints {:show_parameter_hints false}}})) + ; vim:foldmarker=<<<<<,>>>>>