feat: add lsp injected highlights (#148)

This commit is contained in:
Егор Мартынов 2023-03-23 20:17:32 +07:00 committed by GitHub
commit 44ba4bd558
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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 })