feat(tsserver): set some tsserver formatting settings to their Neovim equivalents. Also used for organize imports

This commit is contained in:
Folke Lemaitre
2023-04-21 16:50:12 +02:00
parent 03282126e3
commit eb92903342

View File

@ -20,6 +20,20 @@ return {
---@type lspconfig.options.tsserver
tsserver = {
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,
},