|
| 1 | +return function() |
| 2 | + require("modules.utils").load_plugin("aerial", { |
| 3 | + lazy_load = true, |
| 4 | + close_on_select = false, |
| 5 | + highlight_on_jump = true, |
| 6 | + disable_max_lines = 8500, |
| 7 | + disable_max_size = 1000000, |
| 8 | + ignore = { filetypes = { "NvimTree", "terminal", "nofile" } }, |
| 9 | + -- Use symbol tree for folding. Set to true or false to enable/disable |
| 10 | + -- Set to "auto" to manage folds if your previous foldmethod was 'manual' |
| 11 | + -- This can be a filetype map (see :help aerial-filetype-map) |
| 12 | + manage_folds = "auto", |
| 13 | + layout = { |
| 14 | + -- Determines the default direction to open the aerial window. The 'prefer' |
| 15 | + -- options will open the window in the other direction *if* there is a |
| 16 | + -- different buffer in the way of the preferred direction |
| 17 | + -- Enum: prefer_right, prefer_left, right, left, float |
| 18 | + default_direction = "prefer_right", |
| 19 | + }, |
| 20 | + -- Keymaps in aerial window. Can be any value that `vim.keymap.set` accepts OR a table of keymap |
| 21 | + -- options with a `callback` (e.g. { callback = function() ... end, desc = "", nowait = true }) |
| 22 | + -- Additionally, if it is a string that matches "actions.<name>", |
| 23 | + -- it will use the mapping at require("aerial.actions").<name> |
| 24 | + -- Set to `false` to remove a keymap |
| 25 | + keymaps = { |
| 26 | + ["?"] = "actions.show_help", |
| 27 | + ["g?"] = "actions.show_help", |
| 28 | + ["<CR>"] = "actions.jump", |
| 29 | + ["<2-LeftMouse>"] = "actions.jump", |
| 30 | + ["<C-v>"] = "actions.jump_vsplit", |
| 31 | + ["<C-s>"] = "actions.jump_split", |
| 32 | + ["<C-d>"] = "actions.down_and_scroll", |
| 33 | + ["<C-u>"] = "actions.up_and_scroll", |
| 34 | + ["{"] = "actions.prev", |
| 35 | + ["}"] = "actions.next", |
| 36 | + ["[["] = "actions.prev_up", |
| 37 | + ["]]"] = "actions.next_up", |
| 38 | + ["q"] = "actions.close", |
| 39 | + ["o"] = "actions.tree_toggle", |
| 40 | + ["O"] = "actions.tree_toggle_recursive", |
| 41 | + ["zr"] = "actions.tree_increase_fold_level", |
| 42 | + ["zR"] = "actions.tree_open_all", |
| 43 | + ["zm"] = "actions.tree_decrease_fold_level", |
| 44 | + ["zM"] = "actions.tree_close_all", |
| 45 | + ["zx"] = "actions.tree_sync_folds", |
| 46 | + ["zX"] = "actions.tree_sync_folds", |
| 47 | + }, |
| 48 | + -- A list of all symbols to display. Set to false to display all symbols. |
| 49 | + -- This can be a filetype map (see :help aerial-filetype-map) |
| 50 | + -- To see all available values, see :help SymbolKind |
| 51 | + filter_kind = { |
| 52 | + "Array", |
| 53 | + "Boolean", |
| 54 | + "Class", |
| 55 | + "Constant", |
| 56 | + "Constructor", |
| 57 | + "Enum", |
| 58 | + "EnumMember", |
| 59 | + "Event", |
| 60 | + "Field", |
| 61 | + "File", |
| 62 | + "Function", |
| 63 | + "Interface", |
| 64 | + "Key", |
| 65 | + "Method", |
| 66 | + "Module", |
| 67 | + "Namespace", |
| 68 | + "Null", |
| 69 | + -- "Number", |
| 70 | + "Object", |
| 71 | + "Operator", |
| 72 | + "Package", |
| 73 | + -- "Property", |
| 74 | + -- "String", |
| 75 | + "Struct", |
| 76 | + -- "TypeParameter", |
| 77 | + -- "Variable", |
| 78 | + }, |
| 79 | + }) |
| 80 | +end |
0 commit comments