Skip to content

Commit

Permalink
fix: use new workspace reload command (#36)
Browse files Browse the repository at this point in the history
Co-authored-by: Marc Jakobi <[email protected]>
  • Loading branch information
eero-lehtinen and mrcjkb authored Oct 31, 2023
1 parent bf71e4a commit b920375
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lua/rustaceanvim/lsp.lua
Original file line number Diff line number Diff line change
Expand Up @@ -180,9 +180,7 @@ M.start = function()
if config.tools.reload_workspace_from_cargo_toml then
vim.api.nvim_create_autocmd('BufWritePost', {
pattern = '*/Cargo.toml',
callback = function()
vim.cmd.RustReloadWorkspace()
end,
command = 'silent! RustLsp reloadWorkspace',
group = augroup,
})
end
Expand Down

0 comments on commit b920375

Please sign in to comment.