-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhighlights.lua
More file actions
40 lines (37 loc) · 1.28 KB
/
Copy pathhighlights.lua
File metadata and controls
40 lines (37 loc) · 1.28 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
local M = {}
---@type table<string, string>
local HIGHLIGHT_LINKS = {
PeekstackOrigin = "IncSearch",
PeekstackStackViewIndex = "LineNr",
PeekstackStackViewPinned = "DiagnosticWarn",
PeekstackStackViewTree = "Comment",
PeekstackStackViewProvider = "Type",
PeekstackStackViewPath = "Directory",
PeekstackStackViewFocused = "Type",
PeekstackStackViewPreview = "Comment",
PeekstackStackViewFilter = "Search",
PeekstackStackViewHeader = "Title",
PeekstackStackViewEmpty = "Comment",
PeekstackStackViewCursorLine = "CursorLine",
PeekstackInlinePreview = "Comment",
PeekstackViewportTruncated = "NonText",
PeekstackTitleProvider = "Type",
PeekstackTitlePath = "Directory",
PeekstackTitleIcon = "Special",
PeekstackTitleLine = "LineNr",
PeekstackStackViewIcon = "Special",
PeekstackStackViewLine = "LineNr",
PeekstackPopupBorder = "FloatBorder",
PeekstackPopupBorderFocused = "Function",
PeekstackPopupBorderZoomed = "WarningMsg",
PeekstackTitleKindError = "DiagnosticError",
PeekstackTitleKindWarn = "DiagnosticWarn",
PeekstackTitleKindInfo = "DiagnosticInfo",
PeekstackTitleKindHint = "DiagnosticHint",
}
function M.apply()
for name, link in pairs(HIGHLIGHT_LINKS) do
vim.api.nvim_set_hl(0, name, { default = true, link = link })
end
end
return M