trying to enable inlayhints for vtsls
This commit is contained in:
parent
73c3e42eb2
commit
657a1cdc06
@ -4,6 +4,21 @@ return {
|
||||
{ "williamboman/mason.nvim", opts = {} },
|
||||
"williamboman/mason-lspconfig.nvim",
|
||||
"WhoIsSethDaniel/mason-tool-installer.nvim",
|
||||
"yioneko/nvim-vtsls",
|
||||
opts = {
|
||||
settings = {
|
||||
typescript = {
|
||||
inlayHints = {
|
||||
parameterNames = { enabled = "literals" },
|
||||
parameterTypes = { enabled = true },
|
||||
variableTypes = { enabled = true },
|
||||
propertyDeclarationTypes = { enabled = true },
|
||||
functionLikeReturnTypes = { enabled = true },
|
||||
enumMemberValues = { enabled = true },
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
{ "j-hui/fidget.nvim", opts = {} },
|
||||
|
||||
@ -14,6 +29,8 @@ return {
|
||||
diagnostics = { virtual_text = true },
|
||||
},
|
||||
config = function()
|
||||
inlay_hints = { enabled = true }
|
||||
diagnostics = { virtual_text = true }
|
||||
vim.api.nvim_create_autocmd("LspAttach", {
|
||||
group = vim.api.nvim_create_augroup("kickstart-lsp-attach", { clear = true }),
|
||||
callback = function(event)
|
||||
@ -161,13 +178,44 @@ return {
|
||||
|
||||
rust_analyzer = {},
|
||||
vtsls = {
|
||||
settings = {},
|
||||
-- explicitly add default filetypes, so that we can extend
|
||||
-- them in related extras
|
||||
filetypes = {
|
||||
"javascript",
|
||||
"javascriptreact",
|
||||
"javascript.jsx",
|
||||
"typescript",
|
||||
"typescriptreact",
|
||||
"typescript.tsx",
|
||||
},
|
||||
settings = {
|
||||
typescript = {
|
||||
updateImportsOnFileMove = { enabled = "always" },
|
||||
inlayHints = {
|
||||
parameterNames = { enabled = "literals" },
|
||||
parameterTypes = { enabled = true },
|
||||
variableTypes = { enabled = true },
|
||||
propertyDeclarationTypes = { enabled = true },
|
||||
functionLikeReturnTypes = { enabled = true },
|
||||
enumMemberValues = { enabled = true },
|
||||
},
|
||||
suggest = {
|
||||
completeFunctionCalls = true,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
bashls = {},
|
||||
prismals = {},
|
||||
gopls = {},
|
||||
jsonls = {},
|
||||
eslint = {
|
||||
vim.api.nvim_create_autocmd("BufWritePre", {
|
||||
callback = function()
|
||||
vim.lsp.buf.format()
|
||||
end,
|
||||
}),
|
||||
},
|
||||
lua_ls = {
|
||||
-- cmd = { ... },
|
||||
-- filetypes = { ... },
|
||||
@ -183,11 +231,11 @@ return {
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
local ensure_installed = vim.tbl_keys(servers or {})
|
||||
vim.list_extend(ensure_installed, {
|
||||
"stylua", -- Used to format Lua code
|
||||
"prettierd",
|
||||
"eslint",
|
||||
"codelldb",
|
||||
"gitlab_ci_ls",
|
||||
"js-debug-adapter",
|
||||
|
Loading…
Reference in New Issue
Block a user