diff options
| author | Jacob McDonnell <jacob@jacobmcdonnell.com> | 2024-03-26 21:43:28 -0400 |
|---|---|---|
| committer | Jacob McDonnell <jacob@jacobmcdonnell.com> | 2024-03-26 21:43:28 -0400 |
| commit | 4a903ca920b43184efb05a30c0bb79d21b56e0a9 (patch) | |
| tree | 78b8a674f404954af127a2cf7546780824c3b904 /.config/nvim/after/plugin/treesitter.lua | |
| parent | f4b64685c4e5e80bd279cbb7d6f1c774041e7baa (diff) | |
Updated neovim based on theprimagen
Diffstat (limited to '.config/nvim/after/plugin/treesitter.lua')
| -rw-r--r-- | .config/nvim/after/plugin/treesitter.lua | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/.config/nvim/after/plugin/treesitter.lua b/.config/nvim/after/plugin/treesitter.lua new file mode 100644 index 0000000..b90bdcd --- /dev/null +++ b/.config/nvim/after/plugin/treesitter.lua @@ -0,0 +1,21 @@ +require'nvim-treesitter.configs'.setup { + -- A list of parser names, or "all" (the five listed parsers should always be installed) + ensure_installed = { "c", "lua", "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, + }, +} |
