mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-07-05 15:04:37 +02:00
fix(edgy): only add symbolsoutline to the sidebar if it is installed.
This commit is contained in:
parent
09c1bf54ea
commit
ed89d01113
1 changed files with 98 additions and 91 deletions
|
@ -14,7 +14,8 @@ return {
|
||||||
-- stylua: ignore
|
-- stylua: ignore
|
||||||
{ "<leader>uE", function() require("edgy").select() end, desc = "Edgy Select Window" },
|
{ "<leader>uE", function() require("edgy").select() end, desc = "Edgy Select Window" },
|
||||||
},
|
},
|
||||||
opts = {
|
opts = function()
|
||||||
|
local opts = {
|
||||||
bottom = {
|
bottom = {
|
||||||
{
|
{
|
||||||
ft = "toggleterm",
|
ft = "toggleterm",
|
||||||
|
@ -83,11 +84,6 @@ return {
|
||||||
pinned = true,
|
pinned = true,
|
||||||
open = "Neotree position=top buffers",
|
open = "Neotree position=top buffers",
|
||||||
},
|
},
|
||||||
{
|
|
||||||
ft = "Outline",
|
|
||||||
pinned = true,
|
|
||||||
open = "SymbolsOutline",
|
|
||||||
},
|
|
||||||
"neo-tree",
|
"neo-tree",
|
||||||
},
|
},
|
||||||
keys = {
|
keys = {
|
||||||
|
@ -108,7 +104,18 @@ return {
|
||||||
win:resize("height", -2)
|
win:resize("height", -2)
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
},
|
}
|
||||||
|
local Util = require("lazyvim.util")
|
||||||
|
if Util.has("symbols-outline.nvim") then
|
||||||
|
table.insert(opts.left, {
|
||||||
|
title = "Outline",
|
||||||
|
ft = "outline",
|
||||||
|
pinned = true,
|
||||||
|
open = "SymbolsOutline",
|
||||||
|
})
|
||||||
|
end
|
||||||
|
return opts
|
||||||
|
end,
|
||||||
},
|
},
|
||||||
|
|
||||||
-- prevent neo-tree from opening files in edgy windows
|
-- prevent neo-tree from opening files in edgy windows
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue