updated bindings and configs for lazygit and neotree
This commit is contained in:
parent
55ae493b66
commit
a6197821b4
@ -10,3 +10,4 @@ vim.keymap.set("n", "<C-c>", "<nop>") -- disable Ctrl + C
|
||||
vim.keymap.set("n", "<leader><Tab>", "<C-w>w") -- fast swap window
|
||||
|
||||
-- Plugin Keybinds
|
||||
vim.keymap.set("n", "<leader>pv", vim.cmd.Neotree)
|
||||
|
||||
@ -16,6 +16,6 @@ return {
|
||||
-- setting the keybinding for LazyGit with 'keys' is recommended in
|
||||
-- order to load the plugin when the command is run for the first time
|
||||
keys = {
|
||||
{ "<leader>lg", "<cmd>LazyGit<cr>", desc = "LazyGit" }
|
||||
{ "<leader>pg", "<cmd>LazyGit<cr>", desc = "LazyGit" }
|
||||
}
|
||||
}
|
||||
|
||||
@ -11,6 +11,22 @@ return {
|
||||
---@module "neo-tree"
|
||||
---@type neotree.Config?
|
||||
opts = {
|
||||
filesystem = {
|
||||
filtered_items = {
|
||||
visible = true,
|
||||
hide_dotfiles = false,
|
||||
hide_gitignored = false,
|
||||
},
|
||||
window = {
|
||||
position = "current"
|
||||
}
|
||||
},
|
||||
event_handlers = {
|
||||
event = "file_open_requested",
|
||||
handler = function()
|
||||
vim.cmd("Neotree close")
|
||||
end
|
||||
}
|
||||
-- fill any relevant options here
|
||||
},
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user