Skip to content

Separate Highlight Groups for Different Languages. #117

Answered by mvllow
CREESTL asked this question in Q&A
Discussion options

You must be logged in to vote

This is out of the scope of the theme at the moment but perhaps you could manually override colours via an autocmd:

vim.api.nvim_create_autocmd("ColorScheme", {
  pattern = ".solidity", -- Or whatever the file extension is
  callback = function()
    -- This hardcodes our "gold" colour but you could require our palette as well.
    vim.api.nvim_set_hl(0, "@constructor", { fg = "#f6c177", style = "bold" })
    vim.api.nvim_set_hl(0, "@keyword", { fg = "#f6c177", style = "bold" })
  end,
})

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@CREESTL
Comment options

Answer selected by CREESTL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #116 on January 10, 2023 21:26.