update
This commit is contained in:
@@ -592,12 +592,14 @@ require'nvim-tree'.setup {
|
||||
}
|
||||
|
||||
require('aerial').setup({
|
||||
backends = {"lsp", "treesitter"},
|
||||
-- optionally use on_attach to set keymaps when aerial has attached to a buffer
|
||||
on_attach = function(bufnr)
|
||||
-- Jump forwards/backwards with '{' and '}'
|
||||
vim.keymap.set('n', '{', '<cmd>AerialPrev<CR>', {buffer = bufnr})
|
||||
vim.keymap.set('n', '}', '<cmd>AerialNext<CR>', {buffer = bufnr})
|
||||
-- Jump forwards/backwards with '{' and '}'
|
||||
vim.keymap.set('n', '{', '<cmd>AerialPrev<CR>', {buffer = bufnr})
|
||||
vim.keymap.set('n', '}', '<cmd>AerialNext<CR>', {buffer = bufnr})
|
||||
end,
|
||||
-- filter_kind = false,
|
||||
filter_kind = {
|
||||
"Class",
|
||||
"Constructor",
|
||||
@@ -607,8 +609,28 @@ require('aerial').setup({
|
||||
"Module",
|
||||
"Method",
|
||||
"Struct",
|
||||
"Variable",
|
||||
"Namespace",
|
||||
"Package",
|
||||
"Field",
|
||||
"Constant",
|
||||
},
|
||||
close_on_select = false
|
||||
manage_folds = false,
|
||||
link_tree_to_folds = false,
|
||||
-- Show box drawing characters for the tree hierarchy
|
||||
show_guides = true,
|
||||
|
||||
-- Customize the characters used when show_guides = true
|
||||
guides = {
|
||||
-- When the child item has a sibling below it
|
||||
mid_item = "├─",
|
||||
-- When the child item is the last in the list
|
||||
last_item = "└─",
|
||||
-- When there are nested child guides to the right
|
||||
nested_top = "│ ",
|
||||
-- Raw indentation
|
||||
whitespace = " ",
|
||||
},
|
||||
})
|
||||
-- You probably also want to set a keymap to toggle aerial
|
||||
vim.keymap.set('n', '<F8>', '<cmd>AerialToggle!<CR>')
|
||||
|
||||
Reference in New Issue
Block a user