From f200a263a356ed96181a1ccba56dbbded322c2a3 Mon Sep 17 00:00:00 2001 From: Robert Günzler Date: Wed, 28 Sep 2022 18:48:15 +0200 Subject: vim: make aerial fancier --- .vim/lua/plugins.lua | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to '.vim') diff --git a/.vim/lua/plugins.lua b/.vim/lua/plugins.lua index 549aabb..c15d6fb 100644 --- a/.vim/lua/plugins.lua +++ b/.vim/lua/plugins.lua @@ -46,6 +46,7 @@ local compilepath = vim.fn.stdpath('config') .. '/lua/packer_compiled.lua' if not (vim.fn.empty(vim.fn.glob(compilepath)) > 0) then require('packer_compiled') end + -- auto-compile on save -- {{{ do vim.api.nvim_create_user_command('PackerRecompile', @@ -366,6 +367,21 @@ require('packer').startup({function() config = function() local aerial = require('aerial') aerial.setup({ + backends = { 'lsp', 'treesitter', 'markdown' }, + filter_kind = { + -- default: + 'Class', + 'Constructor', + 'Enum', + 'Function', + 'Interface', + 'Module', + 'Method', + 'Struct', + -- custom: + 'Constant', + 'Variable', + }, icons = require('lsp').symbols, close_automatic_events = {'switch_buffer'}, open_automatic = function(bufnr) @@ -373,6 +389,8 @@ require('packer').startup({function() and aerial.num_symbols(bufnr) > 4 and not aerial.was_closed() end, + default_keybinds = false, + show_guides = true, }) end} --- }}} -- cgit 1.4.1