mirror of
https://git.disroot.org/FollieHiyuki/dotfiles.git
synced 2024-11-28 10:18:25 -05:00
neovim: update Nord for treesitter
This commit is contained in:
parent
024d62eca3
commit
ab971ea6c7
@ -185,30 +185,55 @@ end
|
|||||||
|
|
||||||
-- Treesitter
|
-- Treesitter
|
||||||
local function highlight_treesitter()
|
local function highlight_treesitter()
|
||||||
-- tree-sitter
|
hi('TSPunctDelimiter', c.fg, '', '', '')
|
||||||
|
hi('TSPunctBracket', c.fg, '', '', '')
|
||||||
|
hi('TSPunctSpecial', c.fg, '', '', '')
|
||||||
|
hi('TSConstant', c.yellow, '', '', '')
|
||||||
|
hi('TSConstBuiltin', c.blue, '', '', '')
|
||||||
|
hi('TSConstMacro', c.yellow, '', '', '')
|
||||||
|
hi('TSStringRegex', c.green, '', '', '')
|
||||||
|
hi('TSString', c.green, '', '', '')
|
||||||
|
hi('TSStringEscape', c.green, '', '', '')
|
||||||
|
hi('TSCharacter', c.green, '', '', '')
|
||||||
|
hi('TSNumber', c.purple, '', '', '')
|
||||||
|
hi('TSBoolean', c.purple, '', '', '')
|
||||||
|
hi('TSFloat', c.purple, '', '', '')
|
||||||
|
hi('TSAttribute', c.teal, '', '', '')
|
||||||
|
hi('TSNamespace', c.fg, '', '', '')
|
||||||
|
hi('TSMethod', c.cyan, '', '', '')
|
||||||
|
hi('TSField', c.fg, '', '', '')
|
||||||
|
hi('TSProperty', c.fg, '', '', '')
|
||||||
|
hi('TSConditional', c.blue, '', '', '')
|
||||||
|
hi('TSParameter', c.purple, '', '', '')
|
||||||
|
hi('TSParameterReference', c.purple, '', '', '')
|
||||||
|
hi('TSRepeat', c.blue, '', '', '')
|
||||||
|
hi('TSLabel', c.blue, '', '', '')
|
||||||
|
hi('TSKeyword', c.blue, '', '', '')
|
||||||
|
hi('TSKeywordFunction', c.blue, '', '', '')
|
||||||
|
hi('TSKeywordOperator', c.blue, '', '', '')
|
||||||
|
hi('TSOperator', c.blue, '', '', '')
|
||||||
|
hi('TSException', c.red, '', '', '')
|
||||||
|
hi('TSType', c.teal, '', '', '')
|
||||||
|
hi('TSTypeBuiltin', c.blue, '', '', '')
|
||||||
|
hi('TSStructure', c.blue, '', '', '')
|
||||||
|
hi('TSInclude', c.blue, '', '', '')
|
||||||
|
hi('TSVariableBuiltin', c.fg, '', '', '')
|
||||||
|
hi('TSText', c.fg, '', '', '')
|
||||||
|
hi('TSStrong', c.cyan, '', 'bold', '')
|
||||||
|
hi('TSEmphasis', c.cyan, '', 'bold,italic', '')
|
||||||
|
hi('TSUnderline', c.cyan, '', 'underline', '')
|
||||||
|
hi('TSTitle', c.cyan, '', '', '')
|
||||||
|
hi('TSLiteral', c.cyan, '', '', '')
|
||||||
|
hi('TSURI', c.fg, '', '', '')
|
||||||
|
hi('TSTag', c.blue, '', '', '')
|
||||||
|
hi('TSTagDelimiter', c.fg, '', '', '')
|
||||||
vim.cmd('hi! link TSAnnotation Annotation')
|
vim.cmd('hi! link TSAnnotation Annotation')
|
||||||
vim.cmd('hi! link TSConstBuiltin Constant')
|
|
||||||
vim.cmd('hi! link TSConstructor Function')
|
vim.cmd('hi! link TSConstructor Function')
|
||||||
vim.cmd('hi! link TSEmphasis Italic')
|
|
||||||
vim.cmd('hi! link TSError Error')
|
vim.cmd('hi! link TSError Error')
|
||||||
vim.cmd('hi! link TSFuncBuiltin Function')
|
vim.cmd('hi! link TSFuncBuiltin Function')
|
||||||
|
vim.cmd('hi! link TSFunction Function')
|
||||||
vim.cmd('hi! link TSFuncMacro Function')
|
vim.cmd('hi! link TSFuncMacro Function')
|
||||||
vim.cmd('hi! link TSStringRegex SpecialChar')
|
|
||||||
vim.cmd('hi! link TSStrong Bold')
|
|
||||||
vim.cmd('hi! link TSStructure Structure')
|
|
||||||
vim.cmd('hi! link TSTagDelimiter TSTag')
|
|
||||||
vim.cmd('hi! link TSUnderline Underline')
|
|
||||||
vim.cmd('hi! link TSVariable Variable')
|
vim.cmd('hi! link TSVariable Variable')
|
||||||
vim.cmd('hi! link TSVariableBuiltin Keyword')
|
|
||||||
|
|
||||||
-- ts-rainbow
|
|
||||||
hi('rainbowcol1', c.red, '', 'bold', '')
|
|
||||||
hi('rainbowcol2', c.orange, '', 'bold', '')
|
|
||||||
hi('rainbowcol3', c.yellow, '', 'bold', '')
|
|
||||||
hi('rainbowcol4', c.green, '', 'bold', '')
|
|
||||||
hi('rainbowcol5', c.cyan, '', 'bold', '')
|
|
||||||
hi('rainbowcol6', c.blue, '', 'bold', '')
|
|
||||||
hi('rainbowcol7', c.purple, '', 'bold', '')
|
|
||||||
end
|
end
|
||||||
|
|
||||||
-- LSP groups
|
-- LSP groups
|
||||||
@ -240,6 +265,7 @@ local function highlight_lsp()
|
|||||||
hi('LspReferenceText', c.fg, c.grey_bright, '', '')
|
hi('LspReferenceText', c.fg, c.grey_bright, '', '')
|
||||||
hi('LspReferenceRead', c.fg, c.grey_bright, '', '')
|
hi('LspReferenceRead', c.fg, c.grey_bright, '', '')
|
||||||
hi('LspReferenceWrite', c.fg, c.grey_bright, '', '')
|
hi('LspReferenceWrite', c.fg, c.grey_bright, '', '')
|
||||||
|
hi('LspCodeLens', c.grey_bright, '', 'italic', '')
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Specify groups for plugins
|
-- Specify groups for plugins
|
||||||
@ -249,6 +275,15 @@ local function highlight_plugins()
|
|||||||
hi('GitSignsChangeNr', c.yellow, '', '', '')
|
hi('GitSignsChangeNr', c.yellow, '', '', '')
|
||||||
hi('GitSignsDeleteNr', c.red , '', '', '')
|
hi('GitSignsDeleteNr', c.red , '', '', '')
|
||||||
|
|
||||||
|
-- ts-rainbow
|
||||||
|
hi('rainbowcol1', c.red, '', 'bold', '')
|
||||||
|
hi('rainbowcol2', c.orange, '', 'bold', '')
|
||||||
|
hi('rainbowcol3', c.yellow, '', 'bold', '')
|
||||||
|
hi('rainbowcol4', c.green, '', 'bold', '')
|
||||||
|
hi('rainbowcol5', c.cyan, '', 'bold', '')
|
||||||
|
hi('rainbowcol6', c.blue, '', 'bold', '')
|
||||||
|
hi('rainbowcol7', c.purple, '', 'bold', '')
|
||||||
|
|
||||||
-- BufferLine
|
-- BufferLine
|
||||||
hi('BufferLineIndicatorSelected', c.cyan, '', '', '')
|
hi('BufferLineIndicatorSelected', c.cyan, '', '', '')
|
||||||
hi('BufferLineFill', c.grey1, c.grey1, '', '')
|
hi('BufferLineFill', c.grey1, c.grey1, '', '')
|
||||||
|
Loading…
Reference in New Issue
Block a user