From e11a4c9fddbb5dd3716c694a20f739b76efff295 Mon Sep 17 00:00:00 2001 From: jo-project Date: Fri, 1 Dec 2023 09:24:49 +1100 Subject: [PATCH] LazyVim 10.8.0 --- .../plugins/extras/lang/typescript.lua | 100 +++++++++--------- 1 file changed, 50 insertions(+), 50 deletions(-) diff --git a/lua/lazyvim/plugins/extras/lang/typescript.lua b/lua/lazyvim/plugins/extras/lang/typescript.lua index 26529f4..22be039 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, + }, + }, + }, }, }, },