Skip to content

Commit

Permalink
feat(treesitter): add better separation to builtin and alt methods/var
Browse files Browse the repository at this point in the history
Changes made to method, constructor, field, property, and variable
built-ins for more consistency and clarity.
  • Loading branch information
A-Lamia authored and mehalter committed Jul 8, 2023
1 parent d2106bb commit 27ee450
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lua/astrotheme/groups/plugins/nvim-treesitter.lua
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ local function callback()
["@function.call"] = { link = "@function" },
["@function.macro"] = { fg = C.yellow },

["@method"] = { fg = C.cyan },
["@method"] = { link = "@function" },
["@method.call"] = { link = "@method" },

["@constructor"] = { fg = C.yellow },
["@constructor"] = { link = "@function" },
["@parameter"] = { fg = C.orange },

-- keyword
Expand Down Expand Up @@ -65,12 +65,12 @@ local function callback()

["@storageclass"] = { link = "StorageClass" },
["@attribute"] = { fg = C.yellow },
["@field"] = { link = "@variable.builtin" },
["@property"] = { link = "@variable.builtin" },
["@field"] = { link = "@property" },
["@property"] = { fg = C.red },

-- identifiers
["@variable"] = { link = "Identifier" },
["@variable.builtin"] = { fg = C.red },
["@variable.builtin"] = { fg = C.cyan },

["@constant"] = { link = "Constant" },
["@constant.builtin"] = { link = "@constant" },
Expand Down

0 comments on commit 27ee450

Please sign in to comment.