fmt(neovim): stylua
This commit is contained in:
parent
1929a53229
commit
97b2bb0d4f
11 changed files with 1190 additions and 1117 deletions
|
|
@ -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" })
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue