refactor: clean up file tree, remove redundant code, formatting
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
return {
|
||||
"hedyhli/outline.nvim",
|
||||
'hedyhli/outline.nvim',
|
||||
lazy = true,
|
||||
cmd = { "Outline", "OutlineOpen" },
|
||||
cmd = { 'Outline', 'OutlineOpen' },
|
||||
keys = {
|
||||
{ "<leader>o", "<cmd>Outline<CR>", desc = "Toggle outline" },
|
||||
{ '<leader>o', '<cmd>Outline<CR>', desc = 'Toggle outline' },
|
||||
},
|
||||
opts = {
|
||||
outline_window = {
|
||||
position = "right",
|
||||
position = 'right',
|
||||
width = 25,
|
||||
relative_width = true,
|
||||
auto_close = false,
|
||||
@@ -18,75 +18,72 @@ return {
|
||||
hide_cursor = true,
|
||||
focus_on_open = false,
|
||||
},
|
||||
|
||||
outline_items = {
|
||||
show_symbol_details = true,
|
||||
show_symbol_lineno = false,
|
||||
highlight_hovered_item = true,
|
||||
auto_set_cursor = true,
|
||||
auto_update_events = {
|
||||
follow = { "CursorMoved" },
|
||||
items = { "InsertLeave", "WinEnter", "BufEnter", "BufWinEnter", "TabEnter", "BufWritePost" },
|
||||
follow = { 'CursorMoved' },
|
||||
items = { 'InsertLeave', 'WinEnter', 'BufEnter', 'BufWinEnter', 'TabEnter', 'BufWritePost' },
|
||||
},
|
||||
},
|
||||
|
||||
keymaps = {
|
||||
show_help = "?",
|
||||
close = { "<Esc>", "q" },
|
||||
goto_location = "<Cr>",
|
||||
peek_location = "o",
|
||||
goto_and_close = "<S-Cr>",
|
||||
restore_location = "<C-g>",
|
||||
hover_symbol = "<C-space>",
|
||||
toggle_preview = "K",
|
||||
rename_symbol = "r",
|
||||
code_actions = "a",
|
||||
fold = "h",
|
||||
unfold = "l",
|
||||
fold_toggle = "<Tab>",
|
||||
fold_toggle_all = "<S-Tab>",
|
||||
fold_all = "W",
|
||||
unfold_all = "E",
|
||||
fold_reset = "R",
|
||||
down_and_jump = "<C-j>",
|
||||
up_and_jump = "<C-k>",
|
||||
show_help = '?',
|
||||
close = { '<Esc>', 'q' },
|
||||
goto_location = '<Cr>',
|
||||
peek_location = 'o',
|
||||
goto_and_close = '<S-Cr>',
|
||||
restore_location = '<C-g>',
|
||||
hover_symbol = '<C-space>',
|
||||
toggle_preview = 'K',
|
||||
rename_symbol = 'r',
|
||||
code_actions = 'a',
|
||||
fold = 'h',
|
||||
unfold = 'l',
|
||||
fold_toggle = '<Tab>',
|
||||
fold_toggle_all = '<S-Tab>',
|
||||
fold_all = 'W',
|
||||
unfold_all = 'E',
|
||||
fold_reset = 'R',
|
||||
down_and_jump = '<C-j>',
|
||||
up_and_jump = '<C-k>',
|
||||
},
|
||||
|
||||
symbols = {
|
||||
icons = {
|
||||
File = { icon = "", hl = "Identifier" },
|
||||
Module = { icon = "", hl = "Include" },
|
||||
Namespace = { icon = "", hl = "Include" },
|
||||
Package = { icon = "", hl = "Include" },
|
||||
Class = { icon = "𝓒", hl = "Type" },
|
||||
Method = { icon = "ƒ", hl = "Function" },
|
||||
Property = { icon = "", hl = "Identifier" },
|
||||
Field = { icon = "", hl = "Identifier" },
|
||||
Constructor = { icon = "", hl = "Special" },
|
||||
Enum = { icon = "ℰ", hl = "Type" },
|
||||
Interface = { icon = "", hl = "Type" },
|
||||
Function = { icon = "ƒ", hl = "Function" },
|
||||
Variable = { icon = "", hl = "Constant" },
|
||||
Constant = { icon = "", hl = "Constant" },
|
||||
String = { icon = "𝓐", hl = "String" },
|
||||
Number = { icon = "#", hl = "Number" },
|
||||
Boolean = { icon = "⊨", hl = "Boolean" },
|
||||
Array = { icon = "", hl = "Constant" },
|
||||
Object = { icon = "⦿", hl = "Type" },
|
||||
Key = { icon = "🔐", hl = "Type" },
|
||||
Null = { icon = "NULL", hl = "Type" },
|
||||
EnumMember = { icon = "", hl = "Identifier" },
|
||||
Struct = { icon = "𝓢", hl = "Structure" },
|
||||
Event = { icon = "🗲", hl = "Type" },
|
||||
Operator = { icon = "+", hl = "Identifier" },
|
||||
TypeParameter = { icon = "𝙏", hl = "Identifier" },
|
||||
Component = { icon = "", hl = "Function" },
|
||||
Fragment = { icon = "", hl = "Constant" },
|
||||
TypeAlias = { icon = " ", hl = "Type" },
|
||||
Parameter = { icon = " ", hl = "Identifier" },
|
||||
StaticMethod = { icon = " ", hl = "Function" },
|
||||
Macro = { icon = " ", hl = "Function" },
|
||||
File = { icon = '', hl = 'Identifier' },
|
||||
Module = { icon = '', hl = 'Include' },
|
||||
Namespace = { icon = '', hl = 'Include' },
|
||||
Package = { icon = '', hl = 'Include' },
|
||||
Class = { icon = '𝓒', hl = 'Type' },
|
||||
Method = { icon = 'ƒ', hl = 'Function' },
|
||||
Property = { icon = '', hl = 'Identifier' },
|
||||
Field = { icon = '', hl = 'Identifier' },
|
||||
Constructor = { icon = '', hl = 'Special' },
|
||||
Enum = { icon = 'ℰ', hl = 'Type' },
|
||||
Interface = { icon = '', hl = 'Type' },
|
||||
Function = { icon = 'ƒ', hl = 'Function' },
|
||||
Variable = { icon = '', hl = 'Constant' },
|
||||
Constant = { icon = '', hl = 'Constant' },
|
||||
String = { icon = '𝓐', hl = 'String' },
|
||||
Number = { icon = '#', hl = 'Number' },
|
||||
Boolean = { icon = '⊨', hl = 'Boolean' },
|
||||
Array = { icon = '', hl = 'Constant' },
|
||||
Object = { icon = '⦿', hl = 'Type' },
|
||||
Key = { icon = '🔐', hl = 'Type' },
|
||||
Null = { icon = 'NULL', hl = 'Type' },
|
||||
EnumMember = { icon = '', hl = 'Identifier' },
|
||||
Struct = { icon = '𝓢', hl = 'Structure' },
|
||||
Event = { icon = '🗲', hl = 'Type' },
|
||||
Operator = { icon = '+', hl = 'Identifier' },
|
||||
TypeParameter = { icon = '𝙏', hl = 'Identifier' },
|
||||
Component = { icon = '', hl = 'Function' },
|
||||
Fragment = { icon = '', hl = 'Constant' },
|
||||
TypeAlias = { icon = ' ', hl = 'Type' },
|
||||
Parameter = { icon = ' ', hl = 'Identifier' },
|
||||
StaticMethod = { icon = ' ', hl = 'Function' },
|
||||
Macro = { icon = ' ', hl = 'Function' },
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user