From d184bdac58dfa31ecebd0bdf413e2108333c539f Mon Sep 17 00:00:00 2001 From: Eero Lehtinen Date: Tue, 31 Oct 2023 13:43:56 +0200 Subject: [PATCH] fix: use new workspace reload command --- lua/rustaceanvim/lsp.lua | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lua/rustaceanvim/lsp.lua b/lua/rustaceanvim/lsp.lua index 55bc2f0d..594d8495 100644 --- a/lua/rustaceanvim/lsp.lua +++ b/lua/rustaceanvim/lsp.lua @@ -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