feat(nvim): more modernization

This commit is contained in:
Barrett Ruth 2026-03-01 12:17:16 -05:00
parent 98ea8609fd
commit 8e9d8cd00d
Signed by: barrett
GPG key ID: A6C96C9349D2FC81
16 changed files with 533 additions and 551 deletions

View file

@ -21,8 +21,23 @@ return {
},
on_attach = function(...)
require('config.lsp').on_attach(...)
bmap({ 'n', '\\Rc', '<cmd>RustLsp codeAction<cr>' })
bmap({ 'n', '\\Rm', '<cmd>RustLsp expandMacro<cr>' })
bmap({ 'n', '\\Ro', '<cmd>RustLsp openCargo<cr>' })
vim.keymap.set(
'n',
'\\Rc',
'<cmd>RustLsp codeAction<cr>',
{ buffer = 0 }
)
vim.keymap.set(
'n',
'\\Rm',
'<cmd>RustLsp expandMacro<cr>',
{ buffer = 0 }
)
vim.keymap.set(
'n',
'\\Ro',
'<cmd>RustLsp openCargo<cr>',
{ buffer = 0 }
)
end,
}