mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-24 01:38:54 +02:00
feat(tsserver): set some tsserver formatting settings to their Neovim equivalents. Also used for organize imports
This commit is contained in:
parent
03282126e3
commit
eb92903342
1 changed files with 14 additions and 0 deletions
|
@ -20,6 +20,20 @@ return {
|
||||||
---@type lspconfig.options.tsserver
|
---@type lspconfig.options.tsserver
|
||||||
tsserver = {
|
tsserver = {
|
||||||
settings = {
|
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 = {
|
completions = {
|
||||||
completeFunctionCalls = true,
|
completeFunctionCalls = true,
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue