From a48b14eb3e4ff03e55796dc50e08b6c8a42cccf4 Mon Sep 17 00:00:00 2001 From: Alafate Date: Thu, 7 Mar 2024 11:53:06 +0100 Subject: [PATCH] feat(symbols-outline): use outline.nvim instead of symbols-outline.nvim (#2535) --- .../{symbols-outline.lua => outline.lua} | 20 +++++++++---------- 1 file changed, 9 insertions(+), 11 deletions(-) rename lua/lazyvim/plugins/extras/editor/{symbols-outline.lua => outline.lua} (72%) diff --git a/lua/lazyvim/plugins/extras/editor/symbols-outline.lua b/lua/lazyvim/plugins/extras/editor/outline.lua similarity index 72% rename from lua/lazyvim/plugins/extras/editor/symbols-outline.lua rename to lua/lazyvim/plugins/extras/editor/outline.lua index 32cdd17f..841bf288 100644 --- a/lua/lazyvim/plugins/extras/editor/symbols-outline.lua +++ b/lua/lazyvim/plugins/extras/editor/outline.lua @@ -2,12 +2,12 @@ local Util = require("lazyvim.util") return { { - "simrat39/symbols-outline.nvim", - keys = { { "cs", "SymbolsOutline", desc = "Symbols Outline" } }, - cmd = "SymbolsOutline", + "hedyhli/outline.nvim", + keys = { { "cs", "Outline", desc = "Toggle Outline" } }, + cmd = "Outline", opts = function() local Config = require("lazyvim.config") - local defaults = require("symbols-outline.config").defaults + local defaults = require("outline.config").defaults local opts = { symbols = {}, symbol_blacklist = {}, @@ -38,23 +38,21 @@ return { optional = true, opts = function(_, opts) 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 Util.warn( - "The `edgy.nvim` extra must be **imported** before the `symbols-outline.nvim` extra to work properly.", - { - title = "LazyVim", - } + "The `edgy.nvim` extra must be **imported** before the `outline.nvim` extra to work properly.", + { title = "LazyVim" } ) end opts.right = opts.right or {} table.insert(opts.right, { - title = "Symbols Outline", + title = "Outline", ft = "Outline", pinned = true, - open = "SymbolsOutline", + open = "Outline", }) end, },