Open all sidebar panels when any are opened? #16
Answered
by
folke
mrjones2014
asked this question in
Q&A
-
I basically want this layout. I'm using the command My config: return {
'folke/edgy.nvim',
dependencies = {
{
'nvim-neo-tree/neo-tree.nvim',
config = function()
require('neo-tree').setup({
open_files_do_not_replace_types = { 'terminal', 'Trouble', 'qf', 'edgy' },
})
end,
},
{
'simrat39/symbols-outline.nvim',
config = function()
require('symbols-outline').setup()
end,
},
},
event = 'VeryLazy',
config = function()
require('edgy').setup({
exit_when_last = true,
animate = {
enabled = false,
},
options = {
right = { size = 30 },
},
keys = {
['q'] = function(win)
win.view.edgebar:close()
end,
},
right = {
{
title = 'Neo-Tree Buffers',
ft = 'neo-tree',
filter = function(buf)
return vim.b[buf].neo_tree_source == 'buffers'
end,
pinned = true,
open = 'Neotree position=top buffers',
size = { height = 0.1 },
},
{
title = 'Neo-Tree',
ft = 'neo-tree',
pinned = true,
filter = function(buf)
return vim.b[buf].neo_tree_source == 'filesystem'
end,
size = { height = 0.5 },
},
{
ft = 'Outline',
pinned = true,
open = 'SymbolsOutline',
},
},
})
end,
} |
Beta Was this translation helpful? Give feedback.
Answered by
folke
Jun 8, 2023
Replies: 2 comments 14 replies
-
Also it seems like the windows are not resizable? |
Beta Was this translation helpful? Give feedback.
1 reply
-
You can now call |
Beta Was this translation helpful? Give feedback.
13 replies
Answer selected by
mrjones2014
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can now call
require("edgy").open(pos?)
to open all the pinned views in a given edgebar or all edgebars.