refactor(treesitter): make it easier to override installed parsers
This commit is contained in:
1 file changed
+4
-3
@@ -3,9 +3,6 @@ return {
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
build = ":TSUpdate",
|
||||
event = "BufReadPost",
|
||||
config = function()
|
||||
require("nvim-treesitter.configs").setup({
|
||||
sync_install = false,
|
||||
ensure_installed = {
|
||||
"bash",
|
||||
"help",
|
||||
@@ -23,6 +20,10 @@ return {
|
||||
"vim",
|
||||
"yaml",
|
||||
},
|
||||
config = function(plugin)
|
||||
require("nvim-treesitter.configs").setup({
|
||||
sync_install = false,
|
||||
ensure_installed = plugin.ensure_installed,
|
||||
highlight = { enable = true },
|
||||
indent = { enable = true },
|
||||
context_commentstring = { enable = true, enable_autocmd = false },
|
||||
|
||||
Reference in new issue
Block a user