]> git.localhorst.tv Git - nvim-config.git/commitdiff
fix(examples): fix a bug (#10)
authorAmir Khazaie <733amir@gmail.com>
Fri, 27 Jan 2023 14:56:32 +0000 (18:26 +0330)
committerGitHub <noreply@github.com>
Fri, 27 Jan 2023 14:56:32 +0000 (15:56 +0100)
According to documentation and my test, this is the way to add new items to the table

lua/plugins/example.lua

index b2ead9f69a14897eef1056691c38996af11fc1de..39f342f389423d3eafc6c11ffc6d7b3983e338cb 100644 (file)
@@ -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,
   },