-
Notifications
You must be signed in to change notification settings - Fork 62
Expand file tree
/
Copy pathgps.lua
More file actions
102 lines (94 loc) · 2.64 KB
/
gps.lua
File metadata and controls
102 lines (94 loc) · 2.64 KB
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
local M = {}
M.config = function()
local status_ok, gp = pcall(require, "nvim-gps")
if not status_ok then
vim.notify "nvim-gps not found"
return
end
gp.setup {
disable_icons = false, -- Setting it to true will disable all icons
icons = {
["class-name"] = " ", -- Classes and class-like objects
["function-name"] = " ", -- Functions
["method-name"] = " ", -- Methods (functions inside class-like objects)
-- ["container-name"] = "⛶ ", -- Containers (example: lua tables)
["tag-name"] = "", -- Tags (example: html tags)
},
-- Add custom configuration per language or
-- Disable the plugin for a language
-- Any language not disabled here is enabled by default
languages = {
-- Some languages have custom icons
["json"] = {
icons = {
["array-name"] = " ",
["object-name"] = " ",
["null-name"] = "[] ",
["boolean-name"] = " ",
["number-name"] = "# ",
["string-name"] = " ",
},
},
["latex"] = {
icons = {
["title-name"] = "#",
["label-name"] = "",
},
},
["norg"] = {
icons = {
["title-name"] = "",
},
},
["toml"] = {
icons = {
["table-name"] = " ",
["array-name"] = " ",
["boolean-name"] = " ",
["date-name"] = " ",
["date-time-name"] = " ",
["float-name"] = " ",
["inline-table-name"] = " ",
["integer-name"] = "# ",
["string-name"] = " ",
["time-name"] = " ",
},
},
["verilog"] = {
icons = {
["module-name"] = " ",
},
},
["yaml"] = {
icons = {
["mapping-name"] = " ",
["sequence-name"] = " ",
["null-name"] = "[] ",
["boolean-name"] = " ",
["integer-name"] = "# ",
["float-name"] = " ",
["string-name"] = " ",
},
},
["yang"] = {
icons = {
["module-name"] = "",
["augment-path"] = "",
["container-name"] = "",
["grouping-name"] = " ",
["typedef-name"] = "",
["identity-name"] = "",
["list-name"] = "",
["leaf-list-name"] = "",
["leaf-name"] = "",
["action-name"] = "",
},
},
},
separator = " > ",
depth = 0,
-- indicator used when context hits depth limit
depth_limit_indicator = "..",
}
end
return M