Skip to content

Commit b2f6c39

Browse files
feat: add ability to enable italic inlay type hints
1 parent 4d1c3c6 commit b2f6c39

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
@@ -85,6 +85,9 @@ require('vscode').setup({
8585
-- Enable italic comment
8686
italic_comments = true,
8787

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

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
@@ -569,6 +569,7 @@ theme.set_highlights = function(opts)
569569
hl(0, 'LspReferenceText', { fg = 'NONE', bg = isDark and c.vscPopupHighlightGray or c.vscPopupHighlightLightBlue })
570570
hl(0, 'LspReferenceRead', { fg = 'NONE', bg = isDark and c.vscPopupHighlightGray or c.vscPopupHighlightLightBlue })
571571
hl(0, 'LspReferenceWrite', { fg = 'NONE', bg = isDark and c.vscPopupHighlightGray or c.vscPopupHighlightLightBlue })
572+
hl(0, 'LspInlayHint', { fg = c.vscSuggestion, bg = 'NONE', italic = opts.italic_inlayhints })
572573

573574
-- Trouble
574575
hl(0, 'TroubleNormal', { link = 'Normal' })

0 commit comments

Comments
 (0)