From db44b35d713d9523f510931b0429330972d67b07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20La=C3=ADn?= Date: Thu, 7 Mar 2024 21:48:58 +0100 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20refactor(nvim):=20using=20?= =?UTF-8?q?outline=20extra=20from=20lazyvim=20with=20custom=20options?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .config/nvim/lazyvim.json | 2 +- .../extras/editor/outline-extended.lua | 16 +++++++++ .../lua/plugins/extras/editor/outline.lua | 34 ------------------- 3 files changed, 17 insertions(+), 35 deletions(-) create mode 100644 .config/nvim/lua/plugins/extras/editor/outline-extended.lua delete mode 100644 .config/nvim/lua/plugins/extras/editor/outline.lua diff --git a/.config/nvim/lazyvim.json b/.config/nvim/lazyvim.json index be10654d..c72160d2 100644 --- a/.config/nvim/lazyvim.json +++ b/.config/nvim/lazyvim.json @@ -24,7 +24,7 @@ "plugins.extras.editor.git.diffview", "plugins.extras.editor.harpoon", "plugins.extras.editor.live-server", - "plugins.extras.editor.outline", + "plugins.extras.editor.outline-extended", "plugins.extras.editor.package-info", "plugins.extras.editor.search-replace", "plugins.extras.editor.suda", diff --git a/.config/nvim/lua/plugins/extras/editor/outline-extended.lua b/.config/nvim/lua/plugins/extras/editor/outline-extended.lua new file mode 100644 index 00000000..9d55ac1a --- /dev/null +++ b/.config/nvim/lua/plugins/extras/editor/outline-extended.lua @@ -0,0 +1,16 @@ +return { + { import = "lazyvim.plugins.extras.editor.outline" }, + { + "hedyhli/outline.nvim", + opts = { + outline_window = { + show_symbol_lineno = true, + auto_jump = true, + jump_highlight_duration = 150, + }, + symbol_folding = { + autofold_depth = 1, + }, + }, + }, +} diff --git a/.config/nvim/lua/plugins/extras/editor/outline.lua b/.config/nvim/lua/plugins/extras/editor/outline.lua deleted file mode 100644 index 37515b72..00000000 --- a/.config/nvim/lua/plugins/extras/editor/outline.lua +++ /dev/null @@ -1,34 +0,0 @@ -return { - { - "hedyhli/outline.nvim", - cmd = { "Outline", "OutlineOpen" }, - keys = { { "cs", "Outline", desc = "Symbols Outline" } }, - opts = { - outline_window = { - show_symbol_lineno = true, - auto_jump = true, - jump_highlight_duration = 150, - }, - symbol_folding = { - autofold_depth = 1, - }, - symbols = { - filter = require("lazyvim.config").kind_filter, - }, - }, - }, - { - "folke/edgy.nvim", - optional = true, - opts = function(_, opts) - opts.right = opts.right or {} - table.insert(opts.right, { - title = "Symbols Outline", - ft = "Outline", - pinned = true, - open = "OutlineOpen", - size = { width = 0.15 }, - }) - end, - }, -}