Skip to content

Commit 7312900

Browse files
committed
fix(extensions): add telescope default highlights
to help with changing colorschemes within the same session where these are already defined. related #147
1 parent 534527b commit 7312900

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed

lua/cyberdream/extensions/telescope.lua

+49
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,55 @@ function M.get(opts, t)
2121
TelescopeSelection = { bg = t.bgHighlight },
2222
TelescopePromptCounter = { fg = t.pink },
2323
TelescopeMatching = { fg = t.cyan },
24+
25+
-- Default links
26+
TelescopeNormal = { link = "NormalFloat" },
27+
TelescopeSelectionCaret = { link = "TelescopeSelection" },
28+
TelescopeMultiSelection = { link = "Type" },
29+
TelescopeMultiIcon = { link = "Identifier" },
30+
TelescopePreviewNormal = { link = "TelescopeNormal" },
31+
TelescopePromptNormal = { link = "TelescopeNormal" },
32+
TelescopeResultsNormal = { link = "TelescopeNormal" },
33+
TelescopePromptBorder = { link = "TelescopeBorder" },
34+
TelescopeResultsBorder = { link = "TelescopeBorder" },
35+
TelescopePreviewBorder = { link = "TelescopeBorder" },
36+
TelescopeTitle = { link = "TelescopeBorder" },
37+
TelescopePreviewLine = { link = "Visual" },
38+
TelescopePreviewMatch = { link = "Search" },
39+
TelescopePreviewPipe = { link = "Constant" },
40+
TelescopePreviewCharDev = { link = "Constant" },
41+
TelescopePreviewDirectory = { link = "Directory" },
42+
TelescopePreviewBlock = { link = "Constant" },
43+
TelescopePreviewLink = { link = "Special" },
44+
TelescopePreviewSocket = { link = "Statement" },
45+
TelescopePreviewRead = { link = "Constant" },
46+
TelescopePreviewWrite = { link = "Statement" },
47+
TelescopePreviewExecute = { link = "String" },
48+
TelescopePreviewHyphen = { link = "NonText" },
49+
TelescopePreviewSticky = { link = "Keyword" },
50+
TelescopePreviewSize = { link = "String" },
51+
TelescopePreviewUser = { link = "Constant" },
52+
TelescopePreviewGroup = { link = "Constant" },
53+
TelescopePreviewDate = { link = "Directory" },
54+
TelescopePreviewMessage = { link = "TelescopePreviewNormal" },
55+
TelescopePreviewMessageFillchar = { link = "TelescopePreviewMessage" },
56+
TelescopeResultsClass = { link = "Function" },
57+
TelescopeResultsConstant = { link = "Constant" },
58+
TelescopeResultsField = { link = "Function" },
59+
TelescopeResultsFunction = { link = "Function" },
60+
TelescopeResultsMethod = { link = "Method" },
61+
TelescopeResultsOperator = { link = "Operator" },
62+
TelescopeResultsStruct = { link = "Struct" },
63+
TelescopeResultsVariable = { link = "SpecialChar" },
64+
TelescopeResultsLineNr = { link = "LineNr" },
65+
TelescopeResultsIdentifier = { link = "Identifier" },
66+
TelescopeResultsNumber = { link = "Number" },
67+
TelescopeResultsComment = { link = "Comment" },
68+
TelescopeResultsSpecialComment = { link = "SpecialComment" },
69+
TelescopeResultsDiffChange = { link = "DiffChange" },
70+
TelescopeResultsDiffAdd = { link = "DiffAdd" },
71+
TelescopeResultsDiffDelete = { link = "DiffDelete" },
72+
TelescopeResultsDiffUntracked = { link = "NonText" },
2473
}
2574

2675
if borderless_telescope then

0 commit comments

Comments
 (0)