Skip to content

Commit

Permalink
feat: Improve syntax highlighting for treesitter parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
loctvl842 committed Dec 5, 2023
1 parent 70c384c commit 78376ed
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lua/monokai-pro/theme/plugins/nvim-treesitter.lua
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ M.setup = function(c, config, _)
["@tag.delimiter"] = { fg = c.base.dimmed2 }, -- `<`, `>` in `<div>`
["@operator"] = { fg = c.base.red }, -- `=`, `=>`
["@keyword"] = { fg = c.base.cyan, italic = styles.keyword.italic }, -- `const`, `export`, `default`
["@parameter"] = { fg = c.base.white },
["@parameter"] = { fg = c.base.blue, italic = styles.parameter.italic },
["@string.documentation"] = { fg = c.base.dimmed3 },
["@type.builtin"] = { fg = c.base.cyan },
["@type.builtin"] = { fg = c.base.cyan, italic = styles.type.italic },
["@_isinstance"] = { fg = c.base.green },

["@keyword.return"] = { fg = c.base.red },
Expand Down Expand Up @@ -44,7 +44,7 @@ M.setup = function(c, config, _)
["@type.scss"] = { fg = c.base.cyan },
-- cpp
["@keyword.cpp"] = { fg = c.base.cyan, italic = styles.keyword.italic },
["@namespace.cpp"] = { fg = c.base.white },
["@namespace.cpp"] = { fg = c.base.green },
["@operator.cpp"] = { fg = c.base.red },
["@type.cpp"] = { fg = c.base.blue, italic = styles.type.italic },
["@variable.cpp"] = { fg = c.base.white },
Expand Down
3 changes: 3 additions & 0 deletions lua/monokai-pro/theme/semantic_tokens.lua
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ M.setup = function(c, config, _)
["@lsp.typemod.keyword.documentation"] = { fg = c.base.cyan, italic = true },
-- Dockerfile
["@lsp.type.parameter.dockerfile"] = {}, -- using treesitter instead

-- Cpp
["@lsp.type.namespace.cpp"] = { fg = c.base.green },
}
end

Expand Down

0 comments on commit 78376ed

Please sign in to comment.