Skip to content

Commit

Permalink
LazyVim 10.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jo-project committed Nov 30, 2023
1 parent 793c920 commit 86ce783
Showing 1 changed file with 50 additions and 50 deletions.
100 changes: 50 additions & 50 deletions lua/lazyvim/plugins/extras/lang/typescript.lua
Original file line number Diff line number Diff line change
Expand Up @@ -16,56 +16,56 @@ return {
opts = {
-- make sure mason installs the server
servers = {
---@type lspconfig.options.tsserver
tsserver = {
keys = {
{
"<leader>co",
function()
vim.lsp.buf.code_action({
apply = true,
context = {
only = { "source.organizeImports.ts" },
diagnostics = {},
},
})
end,
desc = "Organize Imports",
},
{
"<leader>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 = {
-- {
-- "<leader>co",
-- function()
-- vim.lsp.buf.code_action({
-- apply = true,
-- context = {
-- only = { "source.organizeImports.ts" },
-- diagnostics = {},
-- },
-- })
-- end,
-- desc = "Organize Imports",
-- },
-- {
-- "<leader>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,
-- },
-- },
-- },
},
},
},
Expand Down

0 comments on commit 86ce783

Please sign in to comment.