Skip to content

Commit f43a324

Browse files
jatinderjitmehalter
authored andcommitted
Replace rust-tools with rustaceanvim
`rust-tools` is archived. The Astrocommunity Rust language pack has also moved to `rustaceanvim`.
1 parent eb046a0 commit f43a324

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

src/content/docs/recipes/advanced_lsp.mdx

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -566,7 +566,7 @@ return {
566566
}
567567
```
568568

569-
### Rust ([rust-tools.nvim](https://github.com/simrat39/rust-tools.nvim))
569+
### Rust ([rustaceanvim](https://github.com/mrcjkb/rustaceanvim))
570570

571571
:::tip
572572

@@ -581,19 +581,18 @@ return {
581581

582582
:::
583583

584-
```lua title="lua/plugins/rust-tools.lua"
584+
```lua title="lua/plugins/rustaceanvim.lua"
585585
return {
586-
{ "simrat39/rust-tools.nvim", lazy = true }, -- add lsp plugin
586+
{
587+
'mrcjkb/rustaceanvim', -- add lsp plugin
588+
version = '^5',
589+
lazy = false, -- This plugin is already lazy
590+
},
587591
{
588592
"AstroNvim/astrolsp",
589593
---@type AstroLSPOpts
590594
opts = {
591-
setup_handlers = {
592-
-- add custom handler
593-
rust_analyzer = function(_, opts)
594-
require("rust-tools").setup({ server = opts })
595-
end,
596-
},
595+
handlers = { rust_analyzer = false }, -- Let rustaceanvim setup `rust_analyzer`
597596
},
598597
},
599598
{

0 commit comments

Comments
 (0)