mirror of
https://github.com/folke/snacks.nvim
synced 2025-07-23 13:05:26 +00:00
115 lines
3.3 KiB
Lua
115 lines
3.3 KiB
Lua
---@class snacks.picker.config.highlights
|
|
local M = {}
|
|
|
|
Snacks.util.set_hl({
|
|
Match = "Special",
|
|
Search = "Search",
|
|
Prompt = "Special",
|
|
InputSearch = "@keyword",
|
|
Special = "Special",
|
|
Label = "SnacksPickerSpecial",
|
|
Totals = "NonText",
|
|
File = "", -- basename of a file path
|
|
Link = "Comment",
|
|
LinkBroken = "DiagnosticError",
|
|
Directory = "Directory", -- basename of a directory path
|
|
PathIgnored = "NonText", -- any ignored file or directory
|
|
PathHidden = "NonText", -- any hidden file or directory
|
|
Dir = "NonText", -- dirname of a path
|
|
Toggle = "DiagnosticVirtualTextInfo",
|
|
Dimmed = "Conceal",
|
|
Row = "String",
|
|
Col = "LineNr",
|
|
Comment = "Comment",
|
|
Desc = "Comment",
|
|
Delim = "Delimiter",
|
|
Spinner = "Special",
|
|
Selected = "Number",
|
|
Cmd = "Function",
|
|
CmdBuiltin = "@constructor",
|
|
Unselected = "NonText",
|
|
Idx = "Number",
|
|
Bold = "Bold",
|
|
Tree = "LineNr",
|
|
Italic = "Italic",
|
|
Code = "@markup.raw.markdown_inline",
|
|
AuPattern = "String",
|
|
AuEvent = "Constant",
|
|
AuGroup = "Type",
|
|
DiagnosticCode = "Special",
|
|
DiagnosticSource = "Comment",
|
|
Register = "Number",
|
|
KeymapMode = "Number",
|
|
KeymapLhs = "Special",
|
|
KeymapNowait = "@variable.builtin",
|
|
BufNr = "Number",
|
|
BufFlags = "NonText",
|
|
KeymapRhs = "NonText",
|
|
Time = "Special",
|
|
UndoAdded = "Added",
|
|
UndoRemoved = "Removed",
|
|
UndoCurrent = "@variable.builtin",
|
|
UndoSaved = "Special",
|
|
GitCommit = "@variable.builtin",
|
|
GitBreaking = "Error",
|
|
GitDetached = "DiagnosticWarn",
|
|
GitBranch = "Title",
|
|
GitBranchCurrent = "Number",
|
|
GitDate = "Special",
|
|
GitIssue = "Number",
|
|
GitType = "Title", -- conventional commit type
|
|
GitScope = "Italic", -- conventional commit scope
|
|
GitStatus = "Special",
|
|
GitStatusAdded = "Added",
|
|
GitStatusModified = "DiagnosticWarn",
|
|
GitStatusDeleted = "Removed",
|
|
GitStatusRenamed = "SnacksPickerGitStatus",
|
|
GitStatusCopied = "SnacksPickerGitStatus",
|
|
GitStatusUntracked = "NonText",
|
|
GitStatusIgnored = "NonText",
|
|
GitStatusUnmerged = "DiagnosticError",
|
|
GitStatusStaged = "DiagnosticHint",
|
|
ManSection = "Number",
|
|
PickWin = "Search",
|
|
PickWinCurrent = "CurSearch",
|
|
LspDisabled = "DiagnosticWarn",
|
|
LspEnabled = "Special",
|
|
LspAttached = "DiagnosticWarn",
|
|
LspAttachedBuf = "DiagnosticInfo",
|
|
LspUnavailable = "DiagnosticError",
|
|
ManPage = "Special",
|
|
-- Icons
|
|
Icon = "Special",
|
|
IconSource = "@constant",
|
|
IconName = "@keyword",
|
|
IconCategory = "@module",
|
|
-- LSP Symbol Kinds
|
|
IconArray = "@punctuation.bracket",
|
|
IconBoolean = "@boolean",
|
|
IconClass = "@type",
|
|
IconConstant = "@constant",
|
|
IconConstructor = "@constructor",
|
|
IconEnum = "@lsp.type.enum",
|
|
IconEnumMember = "@lsp.type.enumMember",
|
|
IconEvent = "Special",
|
|
IconField = "@variable.member",
|
|
IconFile = "Normal",
|
|
IconFunction = "@function",
|
|
IconInterface = "@lsp.type.interface",
|
|
IconKey = "@lsp.type.keyword",
|
|
IconMethod = "@function.method",
|
|
IconModule = "@module",
|
|
IconNamespace = "@module",
|
|
IconNull = "@constant.builtin",
|
|
IconNumber = "@number",
|
|
IconObject = "@constant",
|
|
IconOperator = "@operator",
|
|
IconPackage = "@module",
|
|
IconProperty = "@property",
|
|
IconString = "@string",
|
|
IconStruct = "@lsp.type.struct",
|
|
IconTypeParameter = "@lsp.type.typeParameter",
|
|
IconVariable = "@variable",
|
|
}, { prefix = "SnacksPicker", default = true })
|
|
|
|
return M
|