fix(typescript): remove format settings entirely

This commit is contained in:
Iordanis Petkakis 2023-12-25 23:43:00 +02:00
parent b9563799be
commit 2cc9967713

View file

@ -13,8 +13,9 @@ return {
-- correctly setup lspconfig -- correctly setup lspconfig
{ {
"neovim/nvim-lspconfig", "neovim/nvim-lspconfig",
opts = function(_, opts) opts = {
opts.servers.tsserver = { servers = {
tsserver = {
keys = { keys = {
{ {
"<leader>co", "<leader>co",
@ -43,28 +44,10 @@ return {
desc = "Remove Unused Imports", desc = "Remove Unused Imports",
}, },
}, },
settings = {
typescript = {
format = {
indentSize = vim.o.shiftwidth,
convertTabsToSpaces = vim.o.expandtab,
tabSize = vim.o.tabstop,
}, },
}, },
javascript = {
format = {
indentSize = vim.o.shiftwidth,
convertTabsToSpaces = vim.o.expandtab,
tabSize = vim.o.tabstop,
}, },
}, },
completions = {
completeFunctionCalls = true,
},
},
}
end,
},
{ {
"mfussenegger/nvim-dap", "mfussenegger/nvim-dap",