Compare commits

..

No commits in common. "11dcc20d71208c53acc6ccb69a5b5ef4bb99aea5" and "8464c542c46bd93549e38ced627086a8fd548520" have entirely different histories.

View file

@ -10,11 +10,15 @@ return {
keys[#keys + 1] = { "<leader>lf", format, desc = "Format Document", has = "documentFormatting" } 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] = { "<leader>lf", format, desc = "Format Range", mode = "v", has = "documentRangeFormatting" }
keys[#keys + 1] = { "K", false } -- su puta madre! 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({ vim.diagnostic.config({
float = { border = "rounded" }, float = { border = "rounded" },
}) })
end, end,
opts = { opts = {
-- autoformat = false,
diagnostics = { diagnostics = {
update_in_insert = true, update_in_insert = true,
}, },
@ -22,12 +26,6 @@ return {
rust_analyzer = function() rust_analyzer = function()
return true return true
end, end,
tsserver = function()
return false
end,
vtsls = function()
return true
end,
}, },
servers = { servers = {
yamlls = { yamlls = {
@ -37,8 +35,22 @@ return {
}, },
}, },
}, },
-- rust_analyzer = {
-- settings = {
-- ["rust-analyzer"] = {
-- checkOnSave = {
-- command = "clippy",
-- },
-- },
-- },
-- },
lua_ls = { 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() root_dir = function()
-- local Path = require('plenary.path')
-- return Path:new(fname):parent().filename
return vim.loop.cwd() return vim.loop.cwd()
end, end,
-- ---@type LazyKeys[] -- ---@type LazyKeys[]
@ -54,24 +66,6 @@ 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,
},
},
},
},
}, },
}, },
}, },