-
-
Notifications
You must be signed in to change notification settings - Fork 105
/
native_lsp.lua
23 lines (18 loc) · 990 Bytes
/
native_lsp.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
local M = {}
function M.get(spec, config, opts)
local syn = spec.syntax
-- stylua: ignore
return {
-- These groups are for the native LSP client. Some other LSP clients may
-- use these groups, or use their own. Consult your LSP client's
-- documentation.
LspReferenceText = { bg = spec.sel0 }, -- used for highlighting 'text' references
LspReferenceRead = { bg = spec.sel0 }, -- used for highlighting 'read' references
LspReferenceWrite = { bg = spec.sel0 }, -- used for highlighting 'write' references
LspCodeLens = { fg = spec.syntax.comment }, -- Used to color the virtual text of the codelens
LspCodeLensSeparator = { fg = spec.fg3 }, -- Used to color the separator between two or more code lens
LspSignatureActiveParameter = { fg = spec.sel1 }, -- Used to highlight the active parameter in the signature help
LspInlayHint = { fg = syn.comment, bg = opts.background and spec.bg2 or 'NONE' },
}
end
return M