Compare commits

...

2 commits

Author SHA1 Message Date
Andy Teijelo
11dcc20d71 switch from vtsls to tsserver 2024-07-16 12:07:09 -04:00
Andy Teijelo
73684f4c7f remove commented out lsp settings 2024-07-16 11:59:51 -04:00

View file

@ -10,15 +10,11 @@ return {
keys[#keys + 1] = { "<leader>lf", format, desc = "Format Document", has = "documentFormatting" }
keys[#keys + 1] = { "<leader>lf", format, desc = "Format Range", mode = "v", has = "documentRangeFormatting" }
keys[#keys + 1] = { "K", false } -- su puta madre!
-- vim.lsp.handlers["textDocument/hover"] = vim.lsp.with(vim.lsp.handlers.hover, { border = "rounded" })
-- vim.lsp.handlers["textDocument/signatureHelp"] =
-- vim.lsp.with(vim.lsp.handlers.signature_help, { border = "rounded" })
vim.diagnostic.config({
float = { border = "rounded" },
})
end,
opts = {
-- autoformat = false,
diagnostics = {
update_in_insert = true,
},
@ -26,6 +22,12 @@ return {
rust_analyzer = function()
return true
end,
tsserver = function()
return false
end,
vtsls = function()
return true
end,
},
servers = {
yamlls = {
@ -35,22 +37,8 @@ return {
},
},
},
-- rust_analyzer = {
-- settings = {
-- ["rust-analyzer"] = {
-- checkOnSave = {
-- command = "clippy",
-- },
-- },
-- },
-- },
lua_ls = {
-- mason = false, -- set to false if you don't want this server to be installed with mason
-- Use this to add any additional keymaps
-- for specific lsp servers
root_dir = function()
-- local Path = require('plenary.path')
-- return Path:new(fname):parent().filename
return vim.loop.cwd()
end,
-- ---@type LazyKeys[]
@ -66,6 +54,24 @@ return {
},
},
},
vtsls = { enabled = false },
tsserver = {
enabled = true,
settings = {
typescript = {
inlayHints = {
includeInlayEnumMemberValueHints = true,
includeInlayFunctionLikeReturnTypeHints = true,
includeInlayFunctionParameterTypeHints = true,
includeInlayParameterNameHints = "literals",
includeInlayParameterNameHintsWhenArgumentMatchesName = false,
includeInlayPropertyDeclarationTypeHints = true,
includeInlayVariableTypeHints = false,
includeInlayVariableTypeHintsWhenTypeMatchesName = false,
},
},
},
},
},
},
},