diff options
| author | Nate Buttke <nate-web@riseup.net> | 2023-08-16 09:45:29 -0700 |
|---|---|---|
| committer | Nate Buttke <nate-web@riseup.net> | 2023-08-16 09:45:29 -0700 |
| commit | 249b5005e4c286fb7858438f4e6731a6d44ae6f5 (patch) | |
| tree | 4d7b309e78f3b6f914204192d5e0446d6c03a80b /after/plugin/treesitter.lua | |
init
Diffstat (limited to 'after/plugin/treesitter.lua')
| -rw-r--r-- | after/plugin/treesitter.lua | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/after/plugin/treesitter.lua b/after/plugin/treesitter.lua new file mode 100644 index 0000000..46285d0 --- /dev/null +++ b/after/plugin/treesitter.lua @@ -0,0 +1,22 @@ +require'nvim-treesitter.configs'.setup { + -- A list of parser names, or "all" + ensure_installed = {"c", "cpp", "python", "go", "lua", "rust", "vim", + "vimdoc", "query" }, + + -- Install parsers synchronously (only applied to `ensure_installed`) + sync_install = false, + + -- Automatically install missing parsers when entering buffer + -- Recommendation: set to false if you don't have `tree-sitter` CLI installed locally + auto_install = true, + + highlight = { + enable = true, + -- + -- Setting this to true will run `:h syntax` and tree-sitter at the same time. + -- Set this to `true` if you depend on 'syntax' being enabled (like for indentation). + -- Using this option may slow down your editor, and you may see some duplicate highlights. + -- Instead of true it can also be a list of languages + additional_vim_regex_highlighting = false, + }, +} |