Skip to content

Commit

Permalink
Replace rust-tools with rustaceanvim
Browse files Browse the repository at this point in the history
`rust-tools` is archived. The Astrocommunity Rust language pack has also moved to `rustaceanvim`.
  • Loading branch information
jatinderjit authored Oct 21, 2024
1 parent c70b93f commit 3bfac57
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions src/content/docs/recipes/advanced_lsp.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,7 @@ return {
}
```

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

:::tip

Expand All @@ -581,19 +581,18 @@ return {

:::

```lua title="lua/plugins/rust-tools.lua"
```lua title="lua/plugins/rustaceanvim.lua"
return {
{ "simrat39/rust-tools.nvim", lazy = true }, -- add lsp plugin
{
'mrcjkb/rustaceanvim', -- add lsp plugin
version = '^5',
lazy = false, -- This plugin is already lazy
},
{
"AstroNvim/astrolsp",
---@type AstroLSPOpts
opts = {
setup_handlers = {
-- add custom handler
rust_analyzer = function(_, opts)
require("rust-tools").setup({ server = opts })
end,
},
handlers = { rust_analyzer = false }, -- Let rustaceanvim setup `rust_analyzer`
},
},
{
Expand Down

0 comments on commit 3bfac57

Please sign in to comment.