backup
This commit is contained in:
1 parent
0a7fbc1b29
commit
e8eb46696d
4 files changed
+214
-173
No files matched your search
@@ -1,163 +0,0 @@
|
|||||||
vim.cmd('highlight clear')
|
|
||||||
if vim.fn.exists('syntax_on') then
|
|
||||||
vim.cmd.syntax('reset')
|
|
||||||
end
|
|
||||||
vim.o.background = 'dark'
|
|
||||||
vim.g.colors_name = 'minikanso-quiet'
|
|
||||||
|
|
||||||
local palette = {
|
|
||||||
none = 'NONE',
|
|
||||||
-- bg0 = '#090E13',
|
|
||||||
bg0 = '#101010',
|
|
||||||
bg1 = '#14171d',
|
|
||||||
bg2 = '#1C1E25',
|
|
||||||
blue0 = '#223249',
|
|
||||||
blue1 = '#2D4F67',
|
|
||||||
blue2 = '#658594',
|
|
||||||
blue3 = '#8ba4b0',
|
|
||||||
red0 = '#C34043',
|
|
||||||
yellow0 = '#DCA561',
|
|
||||||
yellow1 = '#c4b28a',
|
|
||||||
|
|
||||||
aqua0 = '#6A9589',
|
|
||||||
orange0 = '#b6927b',
|
|
||||||
fg0 = '#C5C9C7',
|
|
||||||
gray0 = '#A4A7A4',
|
|
||||||
gray1 = '#909398',
|
|
||||||
gray2 = '#75797f',
|
|
||||||
gray3 = '#5C6066',
|
|
||||||
gray4 = '#43464E',
|
|
||||||
gray5 = '#50585d',
|
|
||||||
}
|
|
||||||
|
|
||||||
-- Editor / UI (unchanged Kanso)
|
|
||||||
vim.api.nvim_set_hl(0, 'CurSearch', { fg = palette.fg0, bg = palette.blue1, bold = true })
|
|
||||||
vim.api.nvim_set_hl(0, 'Directory', { fg = palette.blue3 })
|
|
||||||
vim.api.nvim_set_hl(0, 'EndOfBuffer', { fg = palette.bg0 })
|
|
||||||
vim.api.nvim_set_hl(0, 'Error', { fg = palette.red0 })
|
|
||||||
vim.api.nvim_set_hl(0, 'ErrorMsg', { link = 'Error' })
|
|
||||||
vim.api.nvim_set_hl(0, 'WinSeparator', { fg = palette.bg0, bg = palette.none })
|
|
||||||
vim.api.nvim_set_hl(0, 'VertSplit', { link = 'WinSeparator' })
|
|
||||||
vim.api.nvim_set_hl(0, 'SignColumn', { fg = palette.gray3, bg = palette.none })
|
|
||||||
vim.api.nvim_set_hl(0, 'IncSearch', { fg = palette.blue0, bg = palette.yellow0 })
|
|
||||||
vim.api.nvim_set_hl(0, 'Substitute', { fg = palette.fg0, bg = palette.red0 })
|
|
||||||
vim.api.nvim_set_hl(0, 'LineNr', { fg = palette.gray3, bg = palette.none })
|
|
||||||
vim.api.nvim_set_hl(0, 'MatchParen', { fg = palette.yellow0, bold = true })
|
|
||||||
vim.api.nvim_set_hl(0, 'ModeMsg', { fg = palette.yellow0, bold = true })
|
|
||||||
vim.api.nvim_set_hl(0, 'MsgArea', { fg = palette.gray0 })
|
|
||||||
vim.api.nvim_set_hl(0, 'MsgSeparator', { bg = palette.bg0 })
|
|
||||||
vim.api.nvim_set_hl(0, 'MoreMsg', { link = 'DiagnosticInfo' })
|
|
||||||
vim.api.nvim_set_hl(0, 'NonText', { fg = palette.gray3 })
|
|
||||||
|
|
||||||
vim.api.nvim_set_hl(0, 'Normal', { fg = palette.fg0, bg = palette.bg0 })
|
|
||||||
vim.api.nvim_set_hl(0, 'NormalFloat', { fg = palette.gray0, bg = palette.bg1 })
|
|
||||||
|
|
||||||
vim.api.nvim_set_hl(0, 'FloatBorder', { fg = palette.gray4, bg = palette.bg1 })
|
|
||||||
vim.api.nvim_set_hl(0, 'FloatTitle', { link = 'NormalFloat', bold = true })
|
|
||||||
vim.api.nvim_set_hl(0, 'FloatFooter', { fg = palette.gray3, bg = palette.bg1 })
|
|
||||||
vim.api.nvim_set_hl(0, 'Pmenu', { link = 'NormalFloat' })
|
|
||||||
vim.api.nvim_set_hl(0, 'PmenuSel', { fg = palette.none, bg = palette.gray4 })
|
|
||||||
vim.api.nvim_set_hl(0, 'PmenuKindSel', { fg = palette.gray0, bg = palette.gray4 })
|
|
||||||
vim.api.nvim_set_hl(0, 'PmenuExtra', { fg = palette.gray3, bg = palette.bg1 })
|
|
||||||
vim.api.nvim_set_hl(0, 'PmenuExtraSel', { fg = palette.gray3, bg = palette.gray4 })
|
|
||||||
vim.api.nvim_set_hl(0, 'PmenuBorder', { link = 'FloatBorder' })
|
|
||||||
vim.api.nvim_set_hl(0, 'PmenuSbar', { bg = palette.bg0 })
|
|
||||||
vim.api.nvim_set_hl(0, 'PmenuThumb', { bg = palette.gray4 })
|
|
||||||
|
|
||||||
vim.api.nvim_set_hl(0, 'Question', { link = 'MoreMsg' })
|
|
||||||
vim.api.nvim_set_hl(0, 'QuickFixLine', { bg = palette.bg2 })
|
|
||||||
vim.api.nvim_set_hl(0, 'Search', { fg = palette.fg0, bg = palette.blue1 })
|
|
||||||
vim.api.nvim_set_hl(0, 'SpecialKey', { link = 'NonText' })
|
|
||||||
vim.api.nvim_set_hl(0, 'StatusLine', { link = 'NormalFloat' })
|
|
||||||
vim.api.nvim_set_hl(0, 'StatusLineNC', { fg = palette.gray3, bg = palette.bg1 })
|
|
||||||
vim.api.nvim_set_hl(0, 'Title', { fg = palette.blue3, bold = true })
|
|
||||||
vim.api.nvim_set_hl(0, 'Visual', { bg = palette.gray4 })
|
|
||||||
vim.api.nvim_set_hl(0, 'VisualNOS', { link = 'Visual' })
|
|
||||||
vim.api.nvim_set_hl(0, 'WarningMsg', { fg = palette.yellow0 })
|
|
||||||
|
|
||||||
vim.api.nvim_set_hl(0, 'DiagnosticError', { fg = palette.red0 })
|
|
||||||
vim.api.nvim_set_hl(0, 'DiagnosticWarn', { fg = palette.yellow0 })
|
|
||||||
vim.api.nvim_set_hl(0, 'DiagnosticInfo', { fg = palette.blue2 })
|
|
||||||
vim.api.nvim_set_hl(0, 'DiagnosticHint', { fg = palette.aqua0 })
|
|
||||||
vim.api.nvim_set_hl(0, 'DiagnosticOk', { fg = palette.green1 })
|
|
||||||
|
|
||||||
vim.api.nvim_set_hl(0, 'DiagnosticUnderlineError', { undercurl = true, sp = palette.red0 })
|
|
||||||
vim.api.nvim_set_hl(0, 'DiagnosticUnderlineWarn', { undercurl = true, sp = palette.yellow0 })
|
|
||||||
vim.api.nvim_set_hl(0, 'DiagnosticUnderlineInfo', { undercurl = true, sp = palette.blue2 })
|
|
||||||
vim.api.nvim_set_hl(0, 'DiagnosticUnderlineHint', { undercurl = true, sp = palette.aqua0 })
|
|
||||||
vim.api.nvim_set_hl(0, 'DiagnosticUnderlineOk', { undercurl = true, sp = palette.green1 })
|
|
||||||
|
|
||||||
vim.api.nvim_set_hl(0, 'LspSignatureActiveParameter', { fg = palette.yellow0 })
|
|
||||||
|
|
||||||
-- Minimal syntax: gray structure, three accents
|
|
||||||
vim.api.nvim_set_hl(0, 'Comment', { fg = palette.gray5, italic = true })
|
|
||||||
vim.api.nvim_set_hl(0, 'Constant', { fg = palette.orange0 })
|
|
||||||
vim.api.nvim_set_hl(0, 'String', { fg = palette.green1 })
|
|
||||||
vim.api.nvim_set_hl(0, 'Character', { link = 'String' })
|
|
||||||
vim.api.nvim_set_hl(0, 'Number', { fg = palette.orange0 })
|
|
||||||
vim.api.nvim_set_hl(0, 'Boolean', { link = 'Constant' })
|
|
||||||
vim.api.nvim_set_hl(0, 'Float', { link = 'Number' })
|
|
||||||
vim.api.nvim_set_hl(0, 'Identifier', { fg = palette.fg0 })
|
|
||||||
vim.api.nvim_set_hl(0, 'Function', { fg = palette.blue3 })
|
|
||||||
vim.api.nvim_set_hl(0, 'Statement', { fg = palette.gray2 })
|
|
||||||
vim.api.nvim_set_hl(0, 'Operator', { fg = palette.gray1 })
|
|
||||||
vim.api.nvim_set_hl(0, 'Keyword', { fg = palette.gray2 })
|
|
||||||
vim.api.nvim_set_hl(0, 'Exception', { link = 'Statement' })
|
|
||||||
vim.api.nvim_set_hl(0, 'PreProc', { fg = palette.gray1 })
|
|
||||||
vim.api.nvim_set_hl(0, 'Type', { fg = palette.blue3 })
|
|
||||||
vim.api.nvim_set_hl(0, 'Special', { fg = palette.gray0 })
|
|
||||||
vim.api.nvim_set_hl(0, 'Delimiter', { fg = palette.gray1 })
|
|
||||||
vim.api.nvim_set_hl(0, 'Underlined', { fg = palette.gray1, underline = true })
|
|
||||||
vim.api.nvim_set_hl(0, 'Bold', { bold = true })
|
|
||||||
vim.api.nvim_set_hl(0, 'Italic', { italic = true })
|
|
||||||
vim.api.nvim_set_hl(0, 'Todo', { fg = palette.blue0, bg = palette.blue2, bold = true })
|
|
||||||
vim.api.nvim_set_hl(0, 'qfLineNr', { link = 'LineNr' })
|
|
||||||
vim.api.nvim_set_hl(0, 'qfFileName', { link = 'Directory' })
|
|
||||||
vim.api.nvim_set_hl(0, 'Added', { fg = palette.green1 })
|
|
||||||
vim.api.nvim_set_hl(0, 'Removed', { fg = palette.red0 })
|
|
||||||
|
|
||||||
vim.api.nvim_set_hl(0, '@variable', { fg = palette.fg0 })
|
|
||||||
vim.api.nvim_set_hl(0, '@variable.builtin', { fg = palette.gray0, italic = true })
|
|
||||||
vim.api.nvim_set_hl(0, '@variable.parameter', { fg = palette.gray1 })
|
|
||||||
vim.api.nvim_set_hl(0, '@variable.member', { fg = palette.fg0 })
|
|
||||||
vim.api.nvim_set_hl(0, '@string.regexp', { link = 'String' })
|
|
||||||
vim.api.nvim_set_hl(0, '@string.escape', { link = 'String' })
|
|
||||||
vim.api.nvim_set_hl(0, '@type', { link = 'Type' })
|
|
||||||
vim.api.nvim_set_hl(0, '@type.builtin', { link = 'Type' })
|
|
||||||
vim.api.nvim_set_hl(0, '@attribute', { link = 'Constant' })
|
|
||||||
vim.api.nvim_set_hl(0, '@property', { link = '@variable.member' })
|
|
||||||
vim.api.nvim_set_hl(0, '@function', { link = 'Function' })
|
|
||||||
vim.api.nvim_set_hl(0, '@function.builtin', { link = 'Function' })
|
|
||||||
vim.api.nvim_set_hl(0, '@function.call', { link = 'Function' })
|
|
||||||
vim.api.nvim_set_hl(0, '@function.method', { link = 'Function' })
|
|
||||||
vim.api.nvim_set_hl(0, '@function.method.call', { link = 'Function' })
|
|
||||||
vim.api.nvim_set_hl(0, '@constructor', { fg = palette.fg0 })
|
|
||||||
vim.api.nvim_set_hl(0, '@operator', { link = 'Operator' })
|
|
||||||
vim.api.nvim_set_hl(0, '@keyword.coroutine', { fg = palette.gray2 })
|
|
||||||
vim.api.nvim_set_hl(0, '@keyword.function', { fg = palette.gray2 })
|
|
||||||
vim.api.nvim_set_hl(0, '@keyword.operator', { fg = palette.gray1 })
|
|
||||||
vim.api.nvim_set_hl(0, '@keyword.import', { link = 'PreProc' })
|
|
||||||
vim.api.nvim_set_hl(0, '@keyword.modifier', { fg = palette.gray2 })
|
|
||||||
vim.api.nvim_set_hl(0, '@keyword.return', { fg = palette.gray2 })
|
|
||||||
vim.api.nvim_set_hl(0, '@keyword.exception', { fg = palette.gray2 })
|
|
||||||
vim.api.nvim_set_hl(0, '@keyword.conditional', { fg = palette.gray2 })
|
|
||||||
vim.api.nvim_set_hl(0, '@punctuation.delimiter', { fg = palette.gray1 })
|
|
||||||
vim.api.nvim_set_hl(0, '@punctuation.bracket', { fg = palette.gray1 })
|
|
||||||
vim.api.nvim_set_hl(0, '@punctuation.special', { fg = palette.gray0 })
|
|
||||||
vim.api.nvim_set_hl(0, '@comment.error', { fg = palette.fg0, bg = palette.red0, bold = true })
|
|
||||||
vim.api.nvim_set_hl(
|
|
||||||
0,
|
|
||||||
'@comment.warning',
|
|
||||||
{ fg = palette.blue0, bg = palette.yellow0, bold = true }
|
|
||||||
)
|
|
||||||
vim.api.nvim_set_hl(0, '@comment.note', { fg = palette.blue0, bg = palette.aqua0, bold = true })
|
|
||||||
vim.api.nvim_set_hl(0, '@markup.strong', { link = 'Bold' })
|
|
||||||
vim.api.nvim_set_hl(0, '@markup.italic', { link = 'Italic' })
|
|
||||||
vim.api.nvim_set_hl(0, '@markup.strikethrough', { strikethrough = true })
|
|
||||||
vim.api.nvim_set_hl(0, '@markup.underline', { underline = true })
|
|
||||||
vim.api.nvim_set_hl(0, '@markup.heading', { link = 'Function' })
|
|
||||||
vim.api.nvim_set_hl(0, '@markup.quote', { link = '@variable.parameter' })
|
|
||||||
vim.api.nvim_set_hl(0, '@markup.raw', { link = 'String' })
|
|
||||||
vim.api.nvim_set_hl(0, '@lsp.type.keyword.lua', { fg = palette.gray2 })
|
|
||||||
vim.api.nvim_set_hl(0, '@tag.attribute.html', { link = '@property' })
|
|
||||||
vim.api.nvim_set_hl(0, '@string.special.url.html', { link = 'String' })
|
|
||||||
@@ -0,0 +1,205 @@
|
|||||||
|
-- Monochrome palette with a handful of semantic accents.
|
||||||
|
local c = {
|
||||||
|
bg = '#0e0e0e',
|
||||||
|
bg_alt = '#191919',
|
||||||
|
fg = '#eeeeee',
|
||||||
|
gray1 = '#222222',
|
||||||
|
gray2 = '#353535',
|
||||||
|
gray3 = '#494949',
|
||||||
|
gray4 = '#5e5e5e',
|
||||||
|
gray5 = '#747474',
|
||||||
|
gray6 = '#8b8b8b',
|
||||||
|
gray7 = '#a3a3a3',
|
||||||
|
gray8 = '#bbbbbb',
|
||||||
|
gray9 = '#d4d4d4',
|
||||||
|
bright_blue = '#c9e6fd',
|
||||||
|
faded_blue = '#8abae1',
|
||||||
|
neutral_red = '#eca8a8',
|
||||||
|
neutral_green = '#ccd389',
|
||||||
|
neutral_blue = '#a5c6e1',
|
||||||
|
orange = '#cb4b16',
|
||||||
|
green = '#719e07',
|
||||||
|
purple = '#e1bee9',
|
||||||
|
}
|
||||||
|
|
||||||
|
local function hl(group, spec)
|
||||||
|
vim.api.nvim_set_hl(0, group, spec or {})
|
||||||
|
end
|
||||||
|
|
||||||
|
local function clear_groups(list)
|
||||||
|
for group in vim.gsplit(vim.trim(list), '%s+') do
|
||||||
|
hl(group)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
local function colorscheme()
|
||||||
|
vim.api.nvim_command('hi clear')
|
||||||
|
if vim.fn.exists('syntax_on') then
|
||||||
|
vim.api.nvim_command('syntax reset')
|
||||||
|
end
|
||||||
|
vim.o.termguicolors = true
|
||||||
|
vim.g.colors_name = 'monochrome'
|
||||||
|
|
||||||
|
-- Core
|
||||||
|
hl('Normal', { fg = c.fg, bg = c.bg })
|
||||||
|
hl('Terminal', { fg = c.fg, bg = c.bg })
|
||||||
|
hl('Visual', { fg = c.bg, bg = c.fg })
|
||||||
|
hl('VisualNOS', { fg = c.bg, bg = c.fg })
|
||||||
|
hl('Cursor', { fg = c.bg, bg = c.fg })
|
||||||
|
hl('lCursor', { fg = c.bg, bg = c.fg })
|
||||||
|
hl('CursorIM', { fg = c.bg, bg = c.fg })
|
||||||
|
hl('CursorColumn', { fg = c.fg })
|
||||||
|
hl('CursorLine', { bg = c.bg_alt })
|
||||||
|
hl('ColorColumn', { bg = c.bg_alt })
|
||||||
|
hl('Conceal', { fg = c.gray2 })
|
||||||
|
hl('LineNr', { fg = c.gray3 })
|
||||||
|
hl('CursorLineNr', { fg = c.gray8, bg = c.bg_alt })
|
||||||
|
hl('VertSplit', { fg = c.bg, bg = c.bg })
|
||||||
|
hl('IncSearch', { fg = c.bg, bg = c.bright_blue, bold = true })
|
||||||
|
hl('Search', { fg = c.bg, bg = c.faded_blue })
|
||||||
|
hl('MatchParen', { bold = true })
|
||||||
|
hl('Pmenu', { fg = c.fg, bg = c.gray1 })
|
||||||
|
hl('PmenuSel', { fg = c.gray1, bg = c.fg })
|
||||||
|
hl('PmenuSbar', { fg = c.fg, bg = c.gray1 })
|
||||||
|
hl('PmenuThumb', { fg = c.bg, bg = c.gray8 })
|
||||||
|
hl('SpecialComment', { fg = c.gray6, bold = true, italic = true })
|
||||||
|
hl('Todo', { fg = c.purple, bold = true })
|
||||||
|
hl('SpellBad', { fg = c.orange, underline = true })
|
||||||
|
hl('Substitute', { fg = c.orange, bold = true, reverse = true })
|
||||||
|
hl('ErrorMsg', { reverse = true })
|
||||||
|
hl('NonText', { fg = c.green })
|
||||||
|
hl('Whitespace', { fg = c.gray2 })
|
||||||
|
hl('ToolbarLine', { bg = c.bg })
|
||||||
|
hl('ToolbarButton', { bold = true })
|
||||||
|
hl('TabLineSel', { reverse = true })
|
||||||
|
hl('WildMenu', { reverse = true })
|
||||||
|
hl('Typedef', { fg = c.gray7 })
|
||||||
|
|
||||||
|
-- Diff
|
||||||
|
hl('DiffAdd', { fg = c.neutral_green })
|
||||||
|
hl('DiffChange', { fg = c.neutral_blue })
|
||||||
|
hl('DiffDelete', { fg = c.neutral_red })
|
||||||
|
hl('DiffText', { fg = c.neutral_blue })
|
||||||
|
|
||||||
|
-- Treesitter / legacy syntax colors
|
||||||
|
hl('TSBoolean', { fg = c.fg, bold = true })
|
||||||
|
hl('TSCharacter', { fg = c.fg })
|
||||||
|
hl('TSComment', { fg = c.gray3, italic = true })
|
||||||
|
hl('TSConditional', { fg = c.gray4 })
|
||||||
|
hl('TSConstant', { fg = c.fg })
|
||||||
|
hl('TSConstBuiltin', { fg = c.gray3 })
|
||||||
|
hl('TSConstructor', { fg = c.fg })
|
||||||
|
hl('TSError', { underline = true, italic = true })
|
||||||
|
hl('TSException', { underline = true, bold = true })
|
||||||
|
hl('TSField', { fg = c.gray5 })
|
||||||
|
hl('TSFloat', { fg = c.fg, bold = true })
|
||||||
|
hl('TSFunction', { fg = c.gray6 })
|
||||||
|
hl('TSFuncBuiltin', { fg = c.gray4 })
|
||||||
|
hl('TSFuncMacro', { fg = c.gray6 })
|
||||||
|
hl('TSInclude', { fg = c.gray7 })
|
||||||
|
hl('TSKeyword', { fg = c.gray4 })
|
||||||
|
hl('TSKeywordFunction', { fg = c.gray4 })
|
||||||
|
hl('TSKeywordOperator', { fg = c.gray4 })
|
||||||
|
hl('TSKeywordReturn', { fg = c.gray4 })
|
||||||
|
hl('TSLabel', { fg = c.fg })
|
||||||
|
hl('TSMethod', { fg = c.gray6 })
|
||||||
|
hl('TSNamespace', { fg = c.gray4 })
|
||||||
|
hl('TSNone', { fg = c.gray3 })
|
||||||
|
hl('TSNumber', { fg = c.fg, bold = true })
|
||||||
|
hl('TSOperator', { fg = c.fg })
|
||||||
|
hl('TSParameter', { fg = c.gray7 })
|
||||||
|
hl('TSParameterReference', { fg = c.gray7 })
|
||||||
|
hl('TSProperty', { fg = c.gray5 })
|
||||||
|
hl('TSPunctDelimiter', { fg = c.fg })
|
||||||
|
hl('TSPunctBracket', { fg = c.fg })
|
||||||
|
hl('TSPunctSpecial', { fg = c.fg })
|
||||||
|
hl('TSRepeat', { fg = c.gray4 })
|
||||||
|
hl('TSString', { fg = c.gray9 })
|
||||||
|
hl('TSStringRegex', { fg = c.gray9 })
|
||||||
|
hl('TSStringEscape', { fg = c.gray9 })
|
||||||
|
hl('TSSymbol', { fg = c.fg })
|
||||||
|
hl('TSTag', { fg = c.fg })
|
||||||
|
hl('TSText', { fg = c.fg })
|
||||||
|
hl('TSStrong', { bold = true })
|
||||||
|
hl('TSEmphasis', { italic = true })
|
||||||
|
hl('TSUnderline', { underline = true })
|
||||||
|
hl('TSStrike', { strikethrough = true })
|
||||||
|
hl('TSLiteral', { fg = c.fg })
|
||||||
|
hl('TSNote', { bold = true })
|
||||||
|
hl('TSWarning', { bold = true })
|
||||||
|
hl('TSDanger', { bold = true })
|
||||||
|
hl('TSType', { fg = c.gray4 })
|
||||||
|
hl('TSTypeBuiltin', { fg = c.gray4 })
|
||||||
|
hl('TSVariable', { fg = c.gray8 })
|
||||||
|
hl('TSVariableBuiltin', { fg = c.gray8 })
|
||||||
|
|
||||||
|
-- Markdown (Vim's built-in syntax)
|
||||||
|
hl('markdownBold', { bold = true })
|
||||||
|
hl('markdownH1', { bold = true })
|
||||||
|
hl('markdownUrl', { fg = c.bright_blue })
|
||||||
|
hl('markdownLinkDelimiter', { fg = c.gray4 })
|
||||||
|
hl('markdownLinkTextDelimiter', { fg = c.gray4 })
|
||||||
|
hl('mkdCodeStart', { fg = c.gray4 })
|
||||||
|
hl('mkdCodeEnd', { fg = c.gray4 })
|
||||||
|
hl('mkdURL', { fg = c.bright_blue })
|
||||||
|
|
||||||
|
-- Aliases
|
||||||
|
local links = {
|
||||||
|
Bold = 'TSStrong',
|
||||||
|
Boolean = 'TSBoolean',
|
||||||
|
Character = 'TSCharacter',
|
||||||
|
Comment = 'TSComment',
|
||||||
|
Conditional = 'TSConditional',
|
||||||
|
Constant = 'TSConstant',
|
||||||
|
Define = 'TSConstBuiltin',
|
||||||
|
Delimiter = 'TSPunctDelimiter',
|
||||||
|
Error = 'TSError',
|
||||||
|
Exception = 'TSException',
|
||||||
|
Field = 'TSProperty',
|
||||||
|
Float = 'TSFloat',
|
||||||
|
Function = 'TSFunction',
|
||||||
|
Identifier = 'TSVariable',
|
||||||
|
Include = 'TSInclude',
|
||||||
|
Italic = 'TSEmphasis',
|
||||||
|
Keyword = 'TSKeyword',
|
||||||
|
Label = 'TSLabel',
|
||||||
|
Macro = 'TSFuncMacro',
|
||||||
|
Number = 'TSNumber',
|
||||||
|
Operator = 'TSOperator',
|
||||||
|
Repeat = 'TSRepeat',
|
||||||
|
Statement = 'Function',
|
||||||
|
SpecialChar = 'TSStringEscape',
|
||||||
|
String = 'TSString',
|
||||||
|
Structure = 'TSAnnotation',
|
||||||
|
Tag = 'TSTag',
|
||||||
|
Title = 'TSTitle',
|
||||||
|
Type = 'TSType',
|
||||||
|
Underlined = 'TSUnderline',
|
||||||
|
asciidocAttributeEntry = 'TSAttribute',
|
||||||
|
cIncluded = 'TSConstructor',
|
||||||
|
healthError = 'TSDanger',
|
||||||
|
healthWarning = 'TSWarning',
|
||||||
|
markdownFootnote = 'TSNote',
|
||||||
|
markdownLinkText = 'TSURI',
|
||||||
|
rubySymbol = 'TSSymbol',
|
||||||
|
xmlNamespace = 'TSNamespace',
|
||||||
|
}
|
||||||
|
for group, target in pairs(links) do
|
||||||
|
hl(group, { link = target })
|
||||||
|
end
|
||||||
|
|
||||||
|
-- Explicitly clear Vim's stock defaults for these groups.
|
||||||
|
clear_groups([[
|
||||||
|
SpellCap SpellLocal SpellRare
|
||||||
|
ModeMsg MoreMsg StatusLine StatusLineNC
|
||||||
|
Directory EndOfBuffer FoldColumn Folded Question SignColumn SpecialKey
|
||||||
|
TabLine TabLineFill WarningMsg Ignore PreProc Special
|
||||||
|
qfLineNr PmenuSelBold NormalFloat QuickFixLine Debug debugBreakpoint PreCondit
|
||||||
|
TSAnnotation TSAttribute TSConstMacro TSTagDelimiter TSTitle TSURI
|
||||||
|
TSMath TSTextReference TSEnvironment TSEnvironmentName
|
||||||
|
markdownCode markdownCodeDelimiter markdownError
|
||||||
|
mkdDelimiter mkdLineBreak mkdListItem
|
||||||
|
]])
|
||||||
|
end
|
||||||
|
|
||||||
|
colorscheme()
|
||||||
@@ -10,7 +10,7 @@ vim.opt.undofile = true
|
|||||||
vim.opt.swapfile = false
|
vim.opt.swapfile = false
|
||||||
|
|
||||||
vim.opt.termguicolors = true
|
vim.opt.termguicolors = true
|
||||||
vim.opt.signcolumn = 'yes'
|
-- vim.opt.signcolumn = 'yes'
|
||||||
vim.opt.wrap = false
|
vim.opt.wrap = false
|
||||||
vim.opt.confirm = true
|
vim.opt.confirm = true
|
||||||
|
|
||||||
@@ -25,22 +25,25 @@ vim.opt.expandtab = true
|
|||||||
vim.diagnostic.config({
|
vim.diagnostic.config({
|
||||||
virtual_text = true,
|
virtual_text = true,
|
||||||
severity_sort = true,
|
severity_sort = true,
|
||||||
|
signs = false,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
vim.g.loaded_node_provider = 0
|
||||||
|
vim.g.loaded_perl_provider = 0
|
||||||
|
vim.g.loaded_python3_provider = 0
|
||||||
|
vim.g.loaded_ruby_provider = 0
|
||||||
|
|
||||||
vim.pack.add({
|
vim.pack.add({
|
||||||
{ src = 'https://github.com/nvim-mini/mini.nvim.git', version = vim.version.range('*') },
|
{ src = 'https://github.com/nvim-mini/mini.nvim.git', version = vim.version.range('*') },
|
||||||
{ src = 'https://github.com/nvim-treesitter/nvim-treesitter' },
|
{ src = 'https://github.com/nvim-treesitter/nvim-treesitter' },
|
||||||
{ src = 'https://github.com/stevearc/conform.nvim' },
|
{ src = 'https://github.com/stevearc/conform.nvim' },
|
||||||
{ src = 'https://github.com/saghen/blink.cmp', version = vim.version.range('*') },
|
{ src = 'https://github.com/saghen/blink.cmp', version = vim.version.range('*') },
|
||||||
{ src = 'https://git.moomancer.xyz/DarthMooMancer/vern-nvim.git' },
|
{ src = 'https://git.moomancer.xyz/DarthMooMancer/vern-nvim.git' },
|
||||||
-- {
|
|
||||||
-- src = 'https://github.com/oskarnurm/koda.nvim',
|
|
||||||
-- },
|
|
||||||
})
|
})
|
||||||
|
|
||||||
|
-- vim.cmd.colorscheme('minikanso-zen')
|
||||||
-- vim.cmd.colorscheme('minikoda-dark')
|
-- vim.cmd.colorscheme('minikoda-dark')
|
||||||
vim.cmd.colorscheme('minikanso-quiet')
|
vim.cmd.colorscheme('minimal')
|
||||||
-- vim.cmd.colorscheme('minikoda-dark')
|
|
||||||
|
|
||||||
local parsers = {
|
local parsers = {
|
||||||
'lua',
|
'lua',
|
||||||
|
|||||||
@@ -9,10 +9,6 @@
|
|||||||
"rev": "016802de402556da54c36bd7359b441266b01cdd",
|
"rev": "016802de402556da54c36bd7359b441266b01cdd",
|
||||||
"src": "https://github.com/stevearc/conform.nvim"
|
"src": "https://github.com/stevearc/conform.nvim"
|
||||||
},
|
},
|
||||||
"koda.nvim": {
|
|
||||||
"rev": "25a5c98ca2f6bb0b69f5e2654a78f0d7c7e0721d",
|
|
||||||
"src": "https://github.com/oskarnurm/koda.nvim"
|
|
||||||
},
|
|
||||||
"mini.nvim": {
|
"mini.nvim": {
|
||||||
"rev": "1345d191bb3da9c7b0e977f4387c5761f9bff68d",
|
"rev": "1345d191bb3da9c7b0e977f4387c5761f9bff68d",
|
||||||
"src": "https://github.com/nvim-mini/mini.nvim.git",
|
"src": "https://github.com/nvim-mini/mini.nvim.git",
|
||||||
|
|||||||
Reference in new issue
Block a user