Closed mlwarner closed 7 months ago
Uncomment lines for lsp semantic highlighting. This helps with treesitter highlight consistency as the lsp comes online.
I came across this while I was trying to understand color shifts and flickering during startup. My personal config contains these lines:
vim.api.nvim_set_hl(0, "@lsp.type.variable", { link = '@variable' }) vim.api.nvim_set_hl(0, "@lsp.type.property", { link = '@property' })
Can't comment on the other highlight groups, but the names are consistent.
Highlight groups link to Identifer e.g. (@lsp.type.variable.lua links to Identifier priority: 125)
Identifer
Highlight groups link to matching treesitter group e.g. (@lsp.type.variable.lua links to TSVariable priority: 125)
FWIW this change caused functions to no longer have the function color when used as variables. Also caused invalid properties to no longer be differentiable from valid ones.
Uncomment lines for lsp semantic highlighting. This helps with treesitter highlight consistency as the lsp comes online.
I came across this while I was trying to understand color shifts and flickering during startup. My personal config contains these lines:
Can't comment on the other highlight groups, but the names are consistent.
Before
Highlight groups link to
Identifer
e.g. (@lsp.type.variable.lua links to Identifier priority: 125)After
Highlight groups link to matching treesitter group e.g. (@lsp.type.variable.lua links to TSVariable priority: 125)