Add customizations

This commit is contained in:
k-knosala 2024-03-28 21:19:31 +01:00
parent 93fde0556e
commit af39dd4a9f
13 changed files with 151 additions and 28 deletions

10
after/ftplugin/rust.lua Normal file
View file

@ -0,0 +1,10 @@
local bufnr = vim.api.nvim_get_current_buf()
vim.keymap.set(
"n",
"<leader>a",
function()
vim.cmd.RustLsp('codeAction') -- supports rust-analyzer's grouping
-- or vim.lsp.buf.codeAction() if you don't want grouping.
end,
{ desc = "Rust LSP Code [Action]", silent = true, buffer = bufnr }
)