Skip to content

Commit cb9df08

Browse files
authored
Merge pull request #241 from github-main-user/main
feat: add ability to enable italic inlay type hints
2 parents acc94b8 + b2f6c39 commit cb9df08

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,9 @@ require('vscode').setup({
8686
-- Enable italic comment
8787
italic_comments = true,
8888

89+
-- Enable italic inlay type hints
90+
italic_inlayhints = true,
91+
8992
-- Underline `@markup.link.*` variants
9093
underline_links = true,
9194

lua/vscode/config.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ local config = {}
33
local defaults = {
44
transparent = false,
55
italic_comments = false,
6+
italic_inlayhints = false,
67
underline_links = false,
78
color_overrides = {},
89
group_overrides = {},
@@ -18,6 +19,7 @@ config.setup = function(user_opts)
1819
local global_settings_opts = vim.tbl_extend('force', defaults, {
1920
transparent = (vim.g.vscode_transparent == true or vim.g.vscode_transparent == 1),
2021
italic_comments = (vim.g.vscode_italic_comment == true or vim.g.vscode_italic_comment == 1),
22+
italic_inlayhints = (vim.g.vscode_italic_inlayhints == true or vim.g.vscode_italic_inlayhints == 1),
2123
underline_links = (vim.g.vscode_underline_links == true or vim.g.vscode_underline_links == 1),
2224
disable_nvimtree_bg = (vim.g.vscode_disable_nvim_tree_bg == true or vim.g.vscode_disable_nvim_tree_bg == 1),
2325
})

lua/vscode/theme.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -573,6 +573,7 @@ theme.set_highlights = function(opts)
573573
hl(0, 'LspReferenceText', { fg = 'NONE', bg = isDark and c.vscPopupHighlightGray or c.vscPopupHighlightLightBlue })
574574
hl(0, 'LspReferenceRead', { fg = 'NONE', bg = isDark and c.vscPopupHighlightGray or c.vscPopupHighlightLightBlue })
575575
hl(0, 'LspReferenceWrite', { fg = 'NONE', bg = isDark and c.vscPopupHighlightGray or c.vscPopupHighlightLightBlue })
576+
hl(0, 'LspInlayHint', { fg = c.vscSuggestion, bg = 'NONE', italic = opts.italic_inlayhints })
576577

577578
-- Trouble
578579
hl(0, 'TroubleNormal', { link = 'Normal' })

0 commit comments

Comments
 (0)