semantic paramater

This commit is contained in:
Max Miliano 2023-03-18 11:09:51 -03:00
parent ac03678c36
commit e498b84080
2 changed files with 22 additions and 0 deletions

View file

@ -115,6 +115,12 @@ function Colorscheme:setup(t)
self:set_hl(self.user_config.highlights)
self:apply_colorscheme_highlights()
if self.config.theme ~= 'vim' then
local semantic = require 'solarized.semantic'
semantic:load(self)
end
end
return Colorscheme:new()

View file

@ -0,0 +1,16 @@
local semantic = {}
semantic.hl = {
['@lsp.type.parameter'] = { link = '@parameter' },
['@lsp.typemod.parameter.readyonly'] = { italic = true },
}
function semantic:load(solar)
vim.api.nvim_create_autocmd('Colorscheme', {
callback = function()
solar:apply_colorscheme_highlights(self.hl)
end,
})
end
return semantic