summary refs log tree commit diff
path: root/.vim/lua/plugins.lua
diff options
context:
space:
mode:
authorRobert Günzler <r@gnzler.io>2022-09-28 18:48:15 +0200
committerRobert Günzler <r@gnzler.io>2022-09-28 18:48:15 +0200
commitf200a263a356ed96181a1ccba56dbbded322c2a3 (patch)
tree7e6aef2f10cf2ce408b64b122931d279960b4113 /.vim/lua/plugins.lua
parent03979542db3577af172d4ff1b948d82d03ec726a (diff)
vim: make aerial fancier
Diffstat (limited to '.vim/lua/plugins.lua')
-rw-r--r--.vim/lua/plugins.lua18
1 files changed, 18 insertions, 0 deletions
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} --- }}}