nvim/lua/plugins/treesitter.lua

16 lines
507 B
Lua
Raw Normal View History

2023-05-13 02:55:45 +00:00
-- since `vim.tbl_deep_extend`, can only merge tables and not lists, the code above
-- would overwrite `ensure_installed` with the new value.
-- If you'd rather extend the default config, use the code below instead:
return {
{
"nvim-treesitter/nvim-treesitter",
opts = function(_, opts)
-- add tsx and treesitter
vim.list_extend(opts.ensure_installed, {
"rust",
})
end,
},
2023-05-13 03:16:26 +00:00
{ "nvim-treesitter/playground", dependencies = { "nvim-treesitter/nvim-treesitter" } },
2023-05-13 02:55:45 +00:00
}