feat(nvim): add js to the treesitter for the typescript extra

This commit is contained in:
Sergio Laín 2024-01-03 11:00:43 +01:00
parent 0c4d91d8f6
commit 469cb8e820
No known key found for this signature in database
GPG key ID: 14C9B8080681777B

View file

@ -1,6 +1,15 @@
return { return {
{ import = "lazyvim.plugins.extras.lang.typescript" }, { import = "lazyvim.plugins.extras.lang.typescript" },
{ import = "lazyvim.plugins.extras.lang.json" }, { import = "lazyvim.plugins.extras.lang.json" },
{
"nvim-treesitter/nvim-treesitter",
opts = function(_, opts)
vim.list_extend(opts.ensure_installed, {
"javascript",
"jsdoc",
})
end,
},
{ {
"dmmulroy/tsc.nvim", "dmmulroy/tsc.nvim",
opts = { opts = {
@ -95,7 +104,7 @@ return {
["neotest-mocha"] = { ["neotest-mocha"] = {
command = "npm test --", command = "npm test --",
env = { CI = true }, env = { CI = true },
cwd = function(path) cwd = function()
return vim.fn.getcwd() return vim.fn.getcwd()
end, end,
}, },