feat: add rustaceanvim

This commit is contained in:
ZotyDev 2026-02-22 18:38:57 -03:00
parent 03409a59f0
commit 1c041405c9
Signed by: Zoty
SSH key fingerprint: SHA256:WsGEGivgl37t3Mth6uugXMOgMCTR7QolIepNbC+j/tA
4 changed files with 32 additions and 8 deletions

18
rust.lua Normal file
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')
end,
{ silent = true, buffer = bufnr }
)
vim.keymap.set(
'n',
'K',
function()
vim.cmd.RustLsp({ 'hover', 'actions' })
end,
{ silent = true, buffer = bufnr }
)