From f6a971bda4f2fdbc31f85fcbc53d8c122c92d764 Mon Sep 17 00:00:00 2001 From: Amir Khazaie <733amir@gmail.com> Date: Fri, 27 Jan 2023 17:49:35 +0330 Subject: [PATCH] Fix a bug According to documentation and my test, this is the way to add new items to the table --- lua/plugins/example.lua | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lua/plugins/example.lua b/lua/plugins/example.lua index b2ead9f..39f342f 100644 --- a/lua/plugins/example.lua +++ b/lua/plugins/example.lua @@ -166,12 +166,10 @@ return { { "nvim-treesitter/nvim-treesitter", opts = function(_, opts) + -- add tsx and treesitter vim.list_extend(opts.ensure_installed, { - -- add tsx and treesitter - ensure_installed = { "tsx", "typescript", - }, }) end, },