This commit is contained in:
2025-09-07 11:18:48 +02:00
parent 6132b60ca3
commit 1c933f1054
15 changed files with 206 additions and 54 deletions

View File

@@ -46,48 +46,48 @@ return {
},
{ ft = 'spectre_panel', size = { height = 0.4 } },
},
left = {
-- Neo-tree filesystem always takes half the screen height
{
title = 'Neo-Tree',
ft = 'neo-tree',
filter = function(buf)
return vim.b[buf].neo_tree_source == 'filesystem'
end,
size = { height = 0.5 },
},
{
title = 'Neo-Tree Git',
ft = 'neo-tree',
filter = function(buf)
return vim.b[buf].neo_tree_source == 'git_status'
end,
pinned = true,
collapsed = true, -- show window as closed/collapsed on start
open = 'Neotree position=right git_status',
},
{
title = 'Neo-Tree Buffers',
ft = 'neo-tree',
filter = function(buf)
return vim.b[buf].neo_tree_source == 'buffers'
end,
pinned = true,
collapsed = true, -- show window as closed/collapsed on start
open = 'Neotree position=top buffers',
},
{
title = function()
local buf_name = vim.api.nvim_buf_get_name(0) or '[No Name]'
return vim.fn.fnamemodify(buf_name, ':t')
end,
ft = 'Outline',
pinned = true,
open = 'SymbolsOutlineOpen',
},
-- any other neo-tree windows
'neo-tree',
},
-- left = {
-- -- Neo-tree filesystem always takes half the screen height
-- {
-- title = 'Neo-Tree',
-- ft = 'neo-tree',
-- filter = function(buf)
-- return vim.b[buf].neo_tree_source == 'filesystem'
-- end,
-- size = { height = 0.5 },
-- },
-- {
-- title = 'Neo-Tree Git',
-- ft = 'neo-tree',
-- filter = function(buf)
-- return vim.b[buf].neo_tree_source == 'git_status'
-- end,
-- pinned = true,
-- collapsed = true, -- show window as closed/collapsed on start
-- open = 'Neotree position=right git_status',
-- },
-- {
-- title = 'Neo-Tree Buffers',
-- ft = 'neo-tree',
-- filter = function(buf)
-- return vim.b[buf].neo_tree_source == 'buffers'
-- end,
-- pinned = true,
-- collapsed = true, -- show window as closed/collapsed on start
-- open = 'Neotree position=top buffers',
-- },
-- {
-- title = function()
-- local buf_name = vim.api.nvim_buf_get_name(0) or '[No Name]'
-- return vim.fn.fnamemodify(buf_name, ':t')
-- end,
-- ft = 'Outline',
-- pinned = true,
-- open = 'SymbolsOutlineOpen',
-- },
-- -- any other neo-tree windows
-- 'neo-tree',
-- },
},
},
}