chore: organize dotfiles stowed by home-manager

This commit is contained in:
TheGeneralist 2025-06-23 09:21:16 +02:00
parent d82367b7ee
commit c8783b2c52
Signed by: thegeneralist01
SSH key fingerprint: SHA256:pp9qddbCNmVNoSjevdvQvM5z0DHN7LTa8qBMbcMq/R4
40 changed files with 32 additions and 59 deletions

View file

@ -0,0 +1,18 @@
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,
{ silent = true, buffer = bufnr }
)
vim.keymap.set(
"n",
"K", -- Override Neovim's built-in hover keymap with rustaceanvim's hover actions
function()
vim.cmd.RustLsp({ 'hover', 'actions' })
end,
{ silent = true, buffer = bufnr }
)