diff options
Diffstat (limited to 'after/plugin')
| -rw-r--r-- | after/plugin/treesitter.lua | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/after/plugin/treesitter.lua b/after/plugin/treesitter.lua new file mode 100644 index 0000000..79f7c8d --- /dev/null +++ b/after/plugin/treesitter.lua | |||
| @@ -0,0 +1,18 @@ | |||
| 1 | require'nvim-treesitter.configs'.setup { | ||
| 2 | -- A list of parser names, or "all" (the four listed parsers should always be installed) | ||
| 3 | ensure_installed = { "javascript", "typescript" }, | ||
| 4 | |||
| 5 | -- Install parsers synchronously (only applied to `ensure_installed`) | ||
| 6 | sync_install = false, | ||
| 7 | |||
| 8 | -- Automatically install missing parsers when entering buffer | ||
| 9 | -- Recommendation: set to false if you don't have `tree-sitter` CLI installed locally | ||
| 10 | auto_install = true, | ||
| 11 | |||
| 12 | |||
| 13 | highlight = { | ||
| 14 | enable = true, | ||
| 15 | |||
| 16 | additional_vim_regex_highlighting = false, | ||
| 17 | }, | ||
| 18 | } | ||
