fix: rename ts_server to ts_ls

This commit is contained in:
Pojok Code 2024-10-29 16:58:55 +07:00
parent 5559c097d9
commit ce4b507ca3
3 changed files with 5 additions and 4 deletions

View file

@ -13,7 +13,7 @@ if pcode.active_javascript_config.active then
"williamboman/mason-lspconfig.nvim",
opts = function(_, opts)
opts.ensure_installed = opts.ensure_installed or {}
vim.list_extend(opts.ensure_installed, { "html", "eslint", "cssls", "emmet_ls", "jsonls", "tsserver" })
vim.list_extend(opts.ensure_installed, { "html", "eslint", "cssls", "emmet_ls", "jsonls", "ts_ls" })
end,
},
{

View file

@ -179,6 +179,7 @@ keymap("i", "<C-s>", "<cmd>silent! w<cr>", opts)
keymap("n", "<C-s>", "<cmd>silent! w<cr>", opts)
keymap("n", "q", "<cmd>q<cr>", opts)
keymap("x", "<S-Down>", ":'<,'>t'><cr>", opts)
keymap("x", "<S-Up>", ":'<,'>t-1<cr>", opts)
-- keymap("i", "<C-r>", "<cmd>RunFile<CR>", opts)
-- keymap("n", "<C-r>", "<cmd>RunFile<CR>", opts)