feat: add lsp injected highlights

This commit is contained in:
mrtnvgr 2023-03-23 18:40:53 +07:00
commit beb30abb51
No known key found for this signature in database
GPG key ID: 5B3379E981EF48B1

View file

@ -274,6 +274,11 @@ function M._load(options)
h('@lsp.typemod.function.defaultLibrary', { link = 'Special' })
h('@lsp.typemod.variable.defaultLibrary', { link = '@variable.builtin' })
-- LSP Injected Groups
h('@lsp.typemod.operator.injected', { link = '@operator' })
h('@lsp.typemod.string.injected', { link = '@string' })
h('@lsp.typemod.variable.injected', { link = '@variable' })
-- vim.lsp.buf.document_highlight()
h('LspReferenceText', { bg = p.highlight_med })
h('LspReferenceRead', { bg = p.highlight_med })