add keymap for reloading a rust/cargo workspace

This commit is contained in:
Gered 2024-09-07 18:20:52 -04:00
parent 920776c81d
commit 1ab3817b55

View file

@ -37,6 +37,7 @@ vim.api.nvim_create_autocmd('BufEnter', {
map('n', '<leader>re', '<Cmd>RustLsp explainError<CR>', { desc = 'Rust: [E]xplain Error' })
map('n', '<leader>ri', '<Cmd>RustLsp renderDiagnostic<CR>', { desc = 'Rust: Show Next D[i]agnostic' })
map('n', '<leader>ro', '<Cmd>RustLsp openCargo<CR>', { desc = 'Rust: [O]pen Cargo.toml' })
map('n', '<leader>rl', '<Cmd>RustLsp reloadWorkspace<CR>', { desc = 'Rust: Re[l]oad Workspace' })
end
if helper.in_cmake_project() then