♻️ refactor(nvim): using outline extra from lazyvim with custom options

This commit is contained in:
Sergio Laín 2024-03-07 21:48:58 +01:00
parent 3cb9aa1213
commit db44b35d71
No known key found for this signature in database
GPG key ID: 14C9B8080681777B
3 changed files with 17 additions and 35 deletions

View file

@ -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",

View file

@ -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,
},
},
},
}

View file

@ -1,34 +0,0 @@
return {
{
"hedyhli/outline.nvim",
cmd = { "Outline", "OutlineOpen" },
keys = { { "<leader>cs", "<cmd>Outline<CR>", 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,
},
}