diff options
author | Zach Berwaldt <zberwaldt@gmail.com> | 2023-02-26 21:40:29 -0500 |
---|---|---|
committer | Zach Berwaldt <zberwaldt@gmail.com> | 2023-02-26 21:40:29 -0500 |
commit | 3af041205aa51773f0f890a6c59aa134a4931edd (patch) | |
tree | 864e2709e9d34c8500e97f9d0590a495f468d1fb /after | |
parent | cf59818921085fc1e1434e3c8c3ed5cc972c8625 (diff) |
update with treesitter
Diffstat (limited to 'after')
-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 | } | ||