[nvim] Updates rust-analyzer options
This commit is contained in:
19
home-manager/features/neovim/config/lua/plugins/rust.lua
Normal file
19
home-manager/features/neovim/config/lua/plugins/rust.lua
Normal file
@@ -0,0 +1,19 @@
|
||||
return {
|
||||
"mrcjkb/rustaceanvim",
|
||||
opts = {
|
||||
server = {
|
||||
default_settings = {
|
||||
["rust-analyzer"] = {
|
||||
procMacro = {
|
||||
enable = true,
|
||||
ignored = {
|
||||
-- We use async-trait which is commonly ignored, so we need to enable it.
|
||||
["napi-derive"] = { "napi" },
|
||||
["async-recursion"] = { "async_recursion" },
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user