feat: aerial.nvim
This commit is contained in:
parent
135091f457
commit
fd6161e902
4 changed files with 44 additions and 1 deletions
|
@ -52,6 +52,7 @@ with final.pkgs.lib; let
|
|||
flash-nvim
|
||||
which-key-nvim
|
||||
gitsigns-nvim
|
||||
aerial-nvim
|
||||
|
||||
# Treesitter
|
||||
nvim-treesitter-textobjects
|
||||
|
|
32
nvim/lua/plugins/editor/aerial-nvim.lua
Normal file
32
nvim/lua/plugins/editor/aerial-nvim.lua
Normal file
|
@ -0,0 +1,32 @@
|
|||
return {
|
||||
'aerial.nvim',
|
||||
event = { 'BufReadPost', 'BufWritePost', 'BufNewFile' },
|
||||
keys = {
|
||||
{ '<LEADER>cs', '<CMD>AerialToggle<CR>', desc = 'toggle aerial' },
|
||||
},
|
||||
before = function()
|
||||
require('lz.n').trigger_load({ 'mini.icons' })
|
||||
end,
|
||||
after = function()
|
||||
require('aerial').setup({
|
||||
attach_mode = 'global',
|
||||
backends = { 'lsp', 'treesitter', 'markdown', 'man' },
|
||||
show_guides = true,
|
||||
layout = {
|
||||
resize_to_content = false,
|
||||
placement = 'edge',
|
||||
win_opts = {
|
||||
winhl = 'Normal:NormalFloat,FloatBorder:NormalFloat,SignColumn:SignColumnSB',
|
||||
signcolumn = 'yes',
|
||||
statuscolumn = ' ',
|
||||
},
|
||||
},
|
||||
guides = {
|
||||
mid_item = '├╴',
|
||||
last_item = '└╴',
|
||||
nested_top = '│ ',
|
||||
whitespace = ' ',
|
||||
},
|
||||
})
|
||||
end,
|
||||
}
|
|
@ -1,6 +1,7 @@
|
|||
local req = MarleyVim.local_require('plugins.editor')
|
||||
|
||||
return {
|
||||
req('aerial-nvim'),
|
||||
req('flash-nvim'),
|
||||
req('gitsigns-nvim'),
|
||||
req('grug-far-nvim'),
|
||||
|
|
|
@ -13,7 +13,7 @@ return {
|
|||
end
|
||||
end,
|
||||
before = function()
|
||||
require('lz.n').trigger_load('mini.icons')
|
||||
require('lz.n').trigger_load({ 'mini.icons', 'aerial.nvim' })
|
||||
|
||||
if vim.g.colors_name == 'rose-pine' then
|
||||
require('lz.n').trigger_load('rose-pine')
|
||||
|
@ -61,6 +61,15 @@ return {
|
|||
path = 4,
|
||||
symbols = { readonly = ' ', modified = '' },
|
||||
},
|
||||
{
|
||||
'aerial',
|
||||
sep = ' ',
|
||||
sep_icon = '',
|
||||
depth = 5,
|
||||
dense = false,
|
||||
dense_sep = '.',
|
||||
colored = true,
|
||||
},
|
||||
},
|
||||
|
||||
lualine_x = {
|
||||
|
|
Loading…
Reference in a new issue