my demo first config lua
This commit is contained in:
33
lua/alpha/lsp/servers/tsserver.lua
Normal file
33
lua/alpha/lsp/servers/tsserver.lua
Normal file
@@ -0,0 +1,33 @@
|
||||
local lsp_attach = require "alpha.lsp.attach"
|
||||
local lsp_flags = require "alpha.lsp.flags"
|
||||
|
||||
return function(ops)
|
||||
return vim.tbl_extend("force", {
|
||||
on_attach = lsp_attach,
|
||||
flags = lsp_flags,
|
||||
settings = {
|
||||
typescript = {
|
||||
inlayHints = {
|
||||
includeInlayParameterNameHints = "all",
|
||||
includeInlayParameterNameHintsWhenArgumentMatchesName = false,
|
||||
includeInlayFunctionParameterTypeHints = true,
|
||||
includeInlayVariableTypeHints = true,
|
||||
includeInlayPropertyDeclarationTypeHints = true,
|
||||
includeInlayFunctionLikeReturnTypeHints = true,
|
||||
includeInlayEnumMemberValueHints = true,
|
||||
},
|
||||
},
|
||||
javascript = {
|
||||
inlayHints = {
|
||||
includeInlayParameterNameHints = "all",
|
||||
includeInlayParameterNameHintsWhenArgumentMatchesName = false,
|
||||
includeInlayFunctionParameterTypeHints = true,
|
||||
includeInlayVariableTypeHints = true,
|
||||
includeInlayPropertyDeclarationTypeHints = true,
|
||||
includeInlayFunctionLikeReturnTypeHints = true,
|
||||
includeInlayEnumMemberValueHints = true,
|
||||
},
|
||||
},
|
||||
},
|
||||
}, ops)
|
||||
end
|
||||
Reference in New Issue
Block a user