mirror of
https://github.com/harivansh-afk/nvim.git
synced 2026-04-15 11:02:20 +00:00
git tab
This commit is contained in:
parent
71f61685b7
commit
84b67f3c7b
2 changed files with 20 additions and 4 deletions
|
|
@ -10,6 +10,7 @@ return {
|
|||
keys = {
|
||||
{ "<leader>e", "<cmd>Neotree toggle<cr>", desc = "Toggle file explorer" },
|
||||
{ "<BS>", "<cmd>Neotree toggle<cr>", desc = "Toggle file explorer" },
|
||||
{ "<leader>gs", "<cmd>Neotree git_status left<cr>", desc = "Focus git status" },
|
||||
},
|
||||
config = function()
|
||||
require("neo-tree").setup({
|
||||
|
|
@ -17,6 +18,16 @@ return {
|
|||
window = {
|
||||
width = 30,
|
||||
},
|
||||
-- Source selector (tabs) to switch between files/git
|
||||
source_selector = {
|
||||
winbar = true,
|
||||
content_layout = "center",
|
||||
tabs_layout = "equal",
|
||||
sources = {
|
||||
{ source = "filesystem", display_name = " Files" },
|
||||
{ source = "git_status", display_name = " Git" },
|
||||
},
|
||||
},
|
||||
filesystem = {
|
||||
follow_current_file = {
|
||||
enabled = true, -- Highlight and auto-expand to current file
|
||||
|
|
@ -29,6 +40,11 @@ return {
|
|||
hide_hidden = false, -- Show hidden files on Windows
|
||||
},
|
||||
},
|
||||
git_status = {
|
||||
follow_current_file = {
|
||||
enabled = true,
|
||||
},
|
||||
},
|
||||
})
|
||||
end,
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue