Skip to content

Commit

Permalink
Treesitter "diff" parser support.
Browse files Browse the repository at this point in the history
  • Loading branch information
hoelter committed Sep 2, 2023
1 parent 0b74b33 commit b6bdd6f
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions lua/nord/groups.lua
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ M.setup = function()
DiffDelete = { fg = colors.red_11, bg = colors.darker_night_1 },
diffRemoved = { link = "DiffDelete" },
DiffText = { fg = colors.arctic_blue_9, bg = colors.darker_night_1 },
diffLine = { link = "NordFgIceBlue8" },
diffSubname = { link = "Text" },
-- git
gitconfigVariable = { link = "NordFgGreenBlue7" },

Expand Down Expand Up @@ -181,8 +183,15 @@ M.setup = function()
-- hi! link TSAnnotation Annotation
-- hi! link TSStructure Structure

-- Treesitter LSP
-- typescript and typescriptreact

-- Treesitter and LSP specific higlights
-- "diff"
['@text.diff.add.diff'] = { link = "DiffAdd" },
['@text.diff.delete.diff'] = { link = "DiffDelete" },
['@function.diff'] = { link = "Type" },
['@attribute.diff'] = { link = "Text" },

-- "typescript" and typescriptreact
['@type.typescript'] = { link = "NordFgGreenBlue7" },
['@lsp.type.interface.typescript'] = { link = "NordFgGreenBlue7" },
['@lsp.typemod.interface.declaration.typescript'] = { link = "NordFgGreenBlue7" },
Expand Down

0 comments on commit b6bdd6f

Please sign in to comment.