diff --git a/home-manager/features/neovim/config/lua/plugins/rust.lua b/home-manager/features/neovim/config/lua/plugins/rust.lua new file mode 100644 index 0000000..8f3ae3f --- /dev/null +++ b/home-manager/features/neovim/config/lua/plugins/rust.lua @@ -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" }, + }, + }, + }, + }, + }, + }, +}