feat: replace aerial with outline
This commit is contained in:
@@ -1,28 +0,0 @@
|
|||||||
---@type LazyPluginSpec
|
|
||||||
return {
|
|
||||||
"stevearc/aerial.nvim",
|
|
||||||
dependencies = {
|
|
||||||
"nvim-treesitter/nvim-treesitter",
|
|
||||||
},
|
|
||||||
keys = {
|
|
||||||
{
|
|
||||||
"<leader>ss",
|
|
||||||
function()
|
|
||||||
require("aerial").toggle({ focus = false, direction = "left" })
|
|
||||||
end,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"gs",
|
|
||||||
function()
|
|
||||||
require("aerial").focus()
|
|
||||||
end,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
opts = {
|
|
||||||
layout = {
|
|
||||||
max_width = 60,
|
|
||||||
min_width = 60,
|
|
||||||
},
|
|
||||||
attach_mode = "global",
|
|
||||||
},
|
|
||||||
}
|
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
---@type LazyPluginSpec
|
||||||
|
return {
|
||||||
|
"hedyhli/outline.nvim",
|
||||||
|
lazy = true,
|
||||||
|
cmd = { "Outline", "OutlineOpen" },
|
||||||
|
keys = { -- Example mapping to toggle outline
|
||||||
|
{ "<leader>o", "<cmd>Outline<CR>", desc = "Toggle outline" },
|
||||||
|
},
|
||||||
|
opts = {
|
||||||
|
outline_window = {
|
||||||
|
relative_width = false,
|
||||||
|
split_command = "aboveleft 40vsp",
|
||||||
|
focus_on_open = false,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user