feat(symbols-outline): use outline.nvim instead of symbols-outline.nvim (#2535)
This commit is contained in:
@ -2,12 +2,12 @@ local Util = require("lazyvim.util")
|
|||||||
|
|
||||||
return {
|
return {
|
||||||
{
|
{
|
||||||
"simrat39/symbols-outline.nvim",
|
"hedyhli/outline.nvim",
|
||||||
keys = { { "<leader>cs", "<cmd>SymbolsOutline<cr>", desc = "Symbols Outline" } },
|
keys = { { "<leader>cs", "<cmd>Outline<cr>", desc = "Toggle Outline" } },
|
||||||
cmd = "SymbolsOutline",
|
cmd = "Outline",
|
||||||
opts = function()
|
opts = function()
|
||||||
local Config = require("lazyvim.config")
|
local Config = require("lazyvim.config")
|
||||||
local defaults = require("symbols-outline.config").defaults
|
local defaults = require("outline.config").defaults
|
||||||
local opts = {
|
local opts = {
|
||||||
symbols = {},
|
symbols = {},
|
||||||
symbol_blacklist = {},
|
symbol_blacklist = {},
|
||||||
@ -38,23 +38,21 @@ return {
|
|||||||
optional = true,
|
optional = true,
|
||||||
opts = function(_, opts)
|
opts = function(_, opts)
|
||||||
local edgy_idx = Util.plugin.extra_idx("ui.edgy")
|
local edgy_idx = Util.plugin.extra_idx("ui.edgy")
|
||||||
local symbols_idx = Util.plugin.extra_idx("editor.symbols-outline")
|
local symbols_idx = Util.plugin.extra_idx("editor.outline")
|
||||||
|
|
||||||
if edgy_idx and edgy_idx > symbols_idx then
|
if edgy_idx and edgy_idx > symbols_idx then
|
||||||
Util.warn(
|
Util.warn(
|
||||||
"The `edgy.nvim` extra must be **imported** before the `symbols-outline.nvim` extra to work properly.",
|
"The `edgy.nvim` extra must be **imported** before the `outline.nvim` extra to work properly.",
|
||||||
{
|
{ title = "LazyVim" }
|
||||||
title = "LazyVim",
|
|
||||||
}
|
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
opts.right = opts.right or {}
|
opts.right = opts.right or {}
|
||||||
table.insert(opts.right, {
|
table.insert(opts.right, {
|
||||||
title = "Symbols Outline",
|
title = "Outline",
|
||||||
ft = "Outline",
|
ft = "Outline",
|
||||||
pinned = true,
|
pinned = true,
|
||||||
open = "SymbolsOutline",
|
open = "Outline",
|
||||||
})
|
})
|
||||||
end,
|
end,
|
||||||
},
|
},
|
Reference in New Issue
Block a user