mirror of
https://github.com/maxmx03/solarized.nvim.git
synced 2026-09-10 07:26:26 -04:00
semantic paramater
This commit is contained in:
parent
ac03678c36
commit
e498b84080
|
|
@ -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()
|
||||
|
|
|
|||
16
lua/solarized/semantic.lua
Normal file
16
lua/solarized/semantic.lua
Normal 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
|
||||
Loading…
Reference in a new issue