Skip to content

Commit

Permalink
fix(extensions): add telescope default highlights
Browse files Browse the repository at this point in the history
to help with changing colorschemes within the same session where these
are already defined.
related #147
  • Loading branch information
scottmckendry committed Nov 25, 2024
1 parent 534527b commit 7312900
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions lua/cyberdream/extensions/telescope.lua
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,55 @@ function M.get(opts, t)
TelescopeSelection = { bg = t.bgHighlight },
TelescopePromptCounter = { fg = t.pink },
TelescopeMatching = { fg = t.cyan },

-- Default links
TelescopeNormal = { link = "NormalFloat" },
TelescopeSelectionCaret = { link = "TelescopeSelection" },
TelescopeMultiSelection = { link = "Type" },
TelescopeMultiIcon = { link = "Identifier" },
TelescopePreviewNormal = { link = "TelescopeNormal" },
TelescopePromptNormal = { link = "TelescopeNormal" },
TelescopeResultsNormal = { link = "TelescopeNormal" },
TelescopePromptBorder = { link = "TelescopeBorder" },
TelescopeResultsBorder = { link = "TelescopeBorder" },
TelescopePreviewBorder = { link = "TelescopeBorder" },
TelescopeTitle = { link = "TelescopeBorder" },
TelescopePreviewLine = { link = "Visual" },
TelescopePreviewMatch = { link = "Search" },
TelescopePreviewPipe = { link = "Constant" },
TelescopePreviewCharDev = { link = "Constant" },
TelescopePreviewDirectory = { link = "Directory" },
TelescopePreviewBlock = { link = "Constant" },
TelescopePreviewLink = { link = "Special" },
TelescopePreviewSocket = { link = "Statement" },
TelescopePreviewRead = { link = "Constant" },
TelescopePreviewWrite = { link = "Statement" },
TelescopePreviewExecute = { link = "String" },
TelescopePreviewHyphen = { link = "NonText" },
TelescopePreviewSticky = { link = "Keyword" },
TelescopePreviewSize = { link = "String" },
TelescopePreviewUser = { link = "Constant" },
TelescopePreviewGroup = { link = "Constant" },
TelescopePreviewDate = { link = "Directory" },
TelescopePreviewMessage = { link = "TelescopePreviewNormal" },
TelescopePreviewMessageFillchar = { link = "TelescopePreviewMessage" },
TelescopeResultsClass = { link = "Function" },
TelescopeResultsConstant = { link = "Constant" },
TelescopeResultsField = { link = "Function" },
TelescopeResultsFunction = { link = "Function" },
TelescopeResultsMethod = { link = "Method" },
TelescopeResultsOperator = { link = "Operator" },
TelescopeResultsStruct = { link = "Struct" },
TelescopeResultsVariable = { link = "SpecialChar" },
TelescopeResultsLineNr = { link = "LineNr" },
TelescopeResultsIdentifier = { link = "Identifier" },
TelescopeResultsNumber = { link = "Number" },
TelescopeResultsComment = { link = "Comment" },
TelescopeResultsSpecialComment = { link = "SpecialComment" },
TelescopeResultsDiffChange = { link = "DiffChange" },
TelescopeResultsDiffAdd = { link = "DiffAdd" },
TelescopeResultsDiffDelete = { link = "DiffDelete" },
TelescopeResultsDiffUntracked = { link = "NonText" },
}

if borderless_telescope then
Expand Down

0 comments on commit 7312900

Please sign in to comment.