chore: Changed some vim options
This commit is contained in:
parent
28867983cc
commit
6936004bf3
5 changed files with 183 additions and 36 deletions
12
.config/nvim/lua/plugins/rust-tools.lua
Normal file
12
.config/nvim/lua/plugins/rust-tools.lua
Normal file
|
@ -0,0 +1,12 @@
|
|||
local rt = require("rust-tools")
|
||||
|
||||
rt.setup({
|
||||
server = {
|
||||
on_attach = function(_, bufnr)
|
||||
-- Hover actions
|
||||
vim.keymap.set("n", "<C-space>", rt.hover_actions.hover_actions, { buffer = bufnr })
|
||||
-- Code action groups
|
||||
vim.keymap.set("n", "<Leader>a", rt.code_action_group.code_action_group, { buffer = bufnr })
|
||||
end,
|
||||
},
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue