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 {
{ import = "lazyvim.plugins.extras.lang.typescript" },
{ 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",
opts = {
@ -95,7 +104,7 @@ return {
["neotest-mocha"] = {
command = "npm test --",
env = { CI = true },
cwd = function(path)
cwd = function()
return vim.fn.getcwd()
end,
},