feat: aerial.nvim

This commit is contained in:
punkfairie 2025-01-01 17:30:15 -08:00
parent 135091f457
commit fd6161e902
Signed by: punkfairie
GPG key ID: A509E8F77FB9D696
4 changed files with 44 additions and 1 deletions

View file

@ -52,6 +52,7 @@ with final.pkgs.lib; let
flash-nvim
which-key-nvim
gitsigns-nvim
aerial-nvim
# Treesitter
nvim-treesitter-textobjects

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

View file

@ -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'),

View file

@ -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 = {