1
0
Fork 0

neovim: Handle Mason breaking changes

This commit is contained in:
Jeremy Kaplan 2025-10-18 00:20:30 -04:00
commit 6931683c55
6 changed files with 77 additions and 257 deletions

16
neovim/ftplugin/rust.lua Normal file
View file

@ -0,0 +1,16 @@
local bufnr = vim.api.nvim_get_current_buf()
function rustLspMap(mode, keys, cmd)
vim.keymap.set(
mode,
keys,
function() vim.cmd.RustLsp(cmd) end,
{ silent = true, buffer = bufnr }
)
end
-- Use rust-analyzer's grouping of actions
rustLspMap("n", "gra", "codeAction")
-- Use rustaceanvim's hover actions
rustLspMap("n", "K", {'hover', 'actions'})