This repository has been archived by the owner on Nov 25, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
symbol-outline.lua
50 lines (50 loc) · 2.35 KB
/
symbol-outline.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
local icons = require "user.icons"
vim.g.symbols_outline = {
highlight_hovered_item = true,
show_guides = true,
auto_preview = false,
position = "right",
width = 50,
show_numbers = false,
show_relative_numbers = false,
show_symbol_details = true,
keymaps = { -- These keymaps can be a string or a table for multiple keys
close = { "<Esc>", "q" },
goto_location = "<Cr>",
focus_location = "o",
hover_symbol = "<C-space>",
toggle_preview = "K",
rename_symbol = "r",
code_actions = "a",
},
lsp_blacklist = {},
symbol_blacklist = {},
symbols = {
File = { icon = icons.documents.File, hl = "CmpItemKindFile" },
Module = { icon = icons.kind.Module, hl = "CmpItemKindModule" },
Namespace = { icon = icons.kind.Module, hl = "CmpItemKindModule" },
Package = { icon = icons.kind.Module, hl = "CmpItemKindModule" },
Class = { icon = icons.kind.Class, hl = "CmpItemKindClass" },
Method = { icon = icons.kind.Method, hl = "CmpItemKindMethod" },
Property = { icon = icons.kind.Property, hl = "CmpItemKindProperty" },
Field = { icon = icons.kind.Field, hl = "CmpItemKindField" },
Constructor = { icon = icons.kind.Constructor, hl = "CmpItemKindConstructor" },
Enum = { icon = icons.kind.Enum, hl = "CmpItemKindEnum" },
Interface = { icon = icons.kind.Interface, hl = "CmpItemKindInterface" },
Function = { icon = icons.kind.Function, hl = "CmpItemKindFunction" },
Variable = { icon = icons.kind.Variable, hl = "CmpItemKindVariable" },
Constant = { icon = icons.kind.Constant, hl = "CmpItemKindConstant" },
String = { icon = icons.type.String, hl = "TSString" },
Number = { icon = icons.type.Number, hl = "TSNumber" },
Boolean = { icon = icons.type.Boolean, hl = "TSBoolean" },
Array = { icon = icons.type.Array, hl = "TSKeyword" },
Object = { icon = icons.type.Object, hl = "TSKeyword" },
Key = { icon = icons.kind.Keyword, hl = "CmpItemKeyword" },
Null = { icon = "NULL", hl = "TSKeyword" },
EnumMember = { icon = icons.kind.EnumMember, hl = "CmpItemKindEnumMember" },
Struct = { icon = icons.kind.Struct, hl = "CmpItemKindStruct" },
Event = { icon = icons.kind.Event, hl = "CmpItemKindEvent" },
Operator = { icon = icons.kind.Operator, hl = "CmpItemKindOperator" },
TypeParameter = { icon = icons.kind.TypeParameter, hl = "CmpItemKindTypeParameter" },
},
}