diff options
author | Toby Vincent <tobyv13@gmail.com> | 2023-02-02 21:22:24 -0600 |
---|---|---|
committer | Toby Vincent <tobyv13@gmail.com> | 2023-02-02 21:22:24 -0600 |
commit | c46958aa5b4be5e440e7798dc4e94504fd9b8265 (patch) | |
tree | 98a5e04afd0f45a5b2004c068eed323f834bdc2e /nvim/.config | |
parent | 9b75429bf9957ded9b167b454968da8e4b350a6f (diff) |
fix(nvim,lsp): add workaround for rust-analyzer bug
Ref: https://github.com/rust-lang/rust-analyzer/issues/14060
Diffstat (limited to 'nvim/.config')
-rw-r--r-- | nvim/.config/nvim/lua/tobyvin/lsp/configs.lua | 11 |
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", + }, + }, + }, }, }, }, |