Various fixes from mac

This commit is contained in:
2023-12-01 15:26:03 -05:00
parent 9a1c59026f
commit b220cc8ab1
3 changed files with 36 additions and 1 deletions

View File

@@ -3,5 +3,30 @@ local on_attach = require('plugins.lsp.on_attach')
require('typescript').setup({
server = { -- pass options to lspconfig's setup method
on_attach = on_attach,
root_dir = require('lspconfig').util.find_git_ancestor,
settings = {
javascript = {
inlayHints = {
includeInlayEnumMemberValueHints = true,
includeInlayFunctionLikeReturnTypeHints = true,
includeInlayFunctionParameterTypeHints = true,
includeInlayParameterNameHints = "all", -- 'none' | 'literals' | 'all';
includeInlayParameterNameHintsWhenArgumentMatchesName = true,
includeInlayPropertyDeclarationTypeHints = true,
includeInlayVariableTypeHints = true,
},
},
typescript = {
inlayHints = {
includeInlayEnumMemberValueHints = true,
includeInlayFunctionLikeReturnTypeHints = true,
includeInlayFunctionParameterTypeHints = true,
includeInlayParameterNameHints = "all", -- 'none' | 'literals' | 'all';
includeInlayParameterNameHintsWhenArgumentMatchesName = true,
includeInlayPropertyDeclarationTypeHints = true,
includeInlayVariableTypeHints = true,
},
},
},
},
})