aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/nvim
diff options
context:
space:
mode:
authorToby Vincent <tobyv13@gmail.com>2023-02-02 21:22:24 -0600
committerToby Vincent <tobyv13@gmail.com>2023-02-02 21:22:24 -0600
commitc46958aa5b4be5e440e7798dc4e94504fd9b8265 (patch)
tree98a5e04afd0f45a5b2004c068eed323f834bdc2e /nvim
parent9b75429bf9957ded9b167b454968da8e4b350a6f (diff)
fix(nvim,lsp): add workaround for rust-analyzer bug
Ref: https://github.com/rust-lang/rust-analyzer/issues/14060
Diffstat (limited to 'nvim')
-rw-r--r--nvim/.config/nvim/lua/tobyvin/lsp/configs.lua11
1 files changed, 11 insertions, 0 deletions
diff --git a/nvim/.config/nvim/lua/tobyvin/lsp/configs.lua b/nvim/.config/nvim/lua/tobyvin/lsp/configs.lua
index 7fdf036..5719df7 100644
--- a/nvim/.config/nvim/lua/tobyvin/lsp/configs.lua
+++ b/nvim/.config/nvim/lua/tobyvin/lsp/configs.lua
@@ -42,6 +42,9 @@ local M = {
["rust-analyzer"] = {
cargo = {
features = "all",
+ buildScripts = {
+ enable = true,
+ },
},
check = {
command = "clippy",
@@ -56,6 +59,14 @@ local M = {
enforce = true,
},
},
+ procMacro = {
+ enable = true,
+ ignored = {
+ ["tracing-attributes"] = {
+ "instrument",
+ },
+ },
+ },
},
},
},