with ranger

This commit is contained in:
2023-02-05 00:36:44 +01:00
parent 0d2edc0974
commit fcfe2d0617
5 changed files with 32 additions and 5 deletions

9
lua/plugins/ranger.lua Normal file
View File

@@ -0,0 +1,9 @@
return {
"kjuulh/ranger.nvim",
config = function()
require("ranger").setup()
end,
keys = {
{ "<leader>.", "<CMD>Ranger<CR>", "Opens the ranger file manager" },
},
}

View File

@@ -0,0 +1,17 @@
return {
"simrat39/rust-tools.nvim",
config = function()
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,
},
})
end,
}