♻️ refactor(nvim): using outline extra from lazyvim with custom options
This commit is contained in:
parent
3cb9aa1213
commit
db44b35d71
3 changed files with 17 additions and 35 deletions
|
@ -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",
|
||||
|
|
16
.config/nvim/lua/plugins/extras/editor/outline-extended.lua
Normal file
16
.config/nvim/lua/plugins/extras/editor/outline-extended.lua
Normal 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,
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
|
@ -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,
|
||||
},
|
||||
}
|
Loading…
Add table
Reference in a new issue