1
0
Fork 0

fmt(neovim): stylua

This commit is contained in:
Jeremy Kaplan 2025-10-26 15:23:15 -04:00
commit 97b2bb0d4f
11 changed files with 1190 additions and 1117 deletions

View file

@ -1,16 +1,13 @@
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 }
)
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'})
rustLspMap("n", "K", { "hover", "actions" })