mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-28 11:40:13 +02:00
feat(typescript): configure inlayHint (#2995)
* feat(typescript): configure inlayHint since LazyVim have toggle inlayhint keymap, it make sense to configure them for each extra languages provided. In this commit I just add the configuration for typescript, since IDK how to configure the rest of lang extras that was provided. * fix: changed defaults --------- Co-authored-by: Radvil <radvil.linux@gmail.com> Co-authored-by: Folke Lemaitre <folke.lemaitre@gmail.com>
This commit is contained in:
parent
543dead590
commit
2c86da7c2d
1 changed files with 17 additions and 1 deletions
|
@ -1,3 +1,14 @@
|
||||||
|
local inlay_hints_settings = {
|
||||||
|
includeInlayEnumMemberValueHints = true,
|
||||||
|
includeInlayFunctionLikeReturnTypeHints = true,
|
||||||
|
includeInlayFunctionParameterTypeHints = true,
|
||||||
|
includeInlayParameterNameHints = "literal",
|
||||||
|
includeInlayParameterNameHintsWhenArgumentMatchesName = false,
|
||||||
|
includeInlayPropertyDeclarationTypeHints = true,
|
||||||
|
includeInlayVariableTypeHints = false,
|
||||||
|
includeInlayVariableTypeHintsWhenTypeMatchesName = false,
|
||||||
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
||||||
-- add typescript to treesitter
|
-- add typescript to treesitter
|
||||||
|
@ -46,8 +57,13 @@ return {
|
||||||
desc = "Remove Unused Imports",
|
desc = "Remove Unused Imports",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
---@diagnostic disable-next-line: missing-fields
|
|
||||||
settings = {
|
settings = {
|
||||||
|
typescript = {
|
||||||
|
inlayHints = inlay_hints_settings,
|
||||||
|
},
|
||||||
|
javascript = {
|
||||||
|
inlayHints = inlay_hints_settings,
|
||||||
|
},
|
||||||
completions = {
|
completions = {
|
||||||
completeFunctionCalls = true,
|
completeFunctionCalls = true,
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue