diff --git a/lua/lazyvim/plugins/extras/lang/typescript.lua b/lua/lazyvim/plugins/extras/lang/typescript.lua index 22be039..26529f4 100644 --- a/lua/lazyvim/plugins/extras/lang/typescript.lua +++ b/lua/lazyvim/plugins/extras/lang/typescript.lua @@ -16,56 +16,56 @@ return { opts = { -- make sure mason installs the server servers = { - ---@type lspconfig.options.tsserver - tsserver = { - keys = { - { - "co", - function() - vim.lsp.buf.code_action({ - apply = true, - context = { - only = { "source.organizeImports.ts" }, - diagnostics = {}, - }, - }) - end, - desc = "Organize Imports", - }, - { - "cR", - function() - vim.lsp.buf.code_action({ - apply = true, - context = { - only = { "source.removeUnused.ts" }, - diagnostics = {}, - }, - }) - end, - 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, - }, - }, - }, + -- ---@type lspconfig.options.tsserver + -- tsserver = { + -- keys = { + -- { + -- "co", + -- function() + -- vim.lsp.buf.code_action({ + -- apply = true, + -- context = { + -- only = { "source.organizeImports.ts" }, + -- diagnostics = {}, + -- }, + -- }) + -- end, + -- desc = "Organize Imports", + -- }, + -- { + -- "cR", + -- function() + -- vim.lsp.buf.code_action({ + -- apply = true, + -- context = { + -- only = { "source.removeUnused.ts" }, + -- diagnostics = {}, + -- }, + -- }) + -- end, + -- 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, + -- }, + -- }, + -- }, }, }, },