From bfb47ccf4f0373535851c2971a78b86d18b01966 Mon Sep 17 00:00:00 2001 From: OneOfOne Date: Tue, 3 Oct 2023 16:18:14 -0500 Subject: [PATCH] revert settings change --- .../plugins/extras/lang/typescript.lua | 24 +++++++++++-------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/lua/lazyvim/plugins/extras/lang/typescript.lua b/lua/lazyvim/plugins/extras/lang/typescript.lua index 33f8ab69..4af1deec 100644 --- a/lua/lazyvim/plugins/extras/lang/typescript.lua +++ b/lua/lazyvim/plugins/extras/lang/typescript.lua @@ -1,11 +1,3 @@ -local fmt_opts = { - format = { - indentSize = vim.o.shiftwidth, - convertTabsToSpaces = vim.o.expandtab, - tabSize = vim.o.tabstop, - }, -} - return { -- add typescript to treesitter @@ -42,8 +34,20 @@ return { }, }, settings = { - typescript = fmt_opts, - javascript = fmt_opts, + 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, },