diff options
| author | David T. Sadler <davidtsadler@googlemail.com> | 2023-02-11 12:51:08 +0000 |
|---|---|---|
| committer | David T. Sadler <davidtsadler@googlemail.com> | 2023-02-11 12:51:08 +0000 |
| commit | c5d4e4a23a397ae1dc68682734f2fe26d3adf0f0 (patch) | |
| tree | 806f51c63abab0aba0e0c17170abe75eddbe019a /.config/nvim/after/plugin/treesitter.lua | |
| parent | 381b1cd773be35d3567ca562485b67b0502a152c (diff) | |
Switched to lua and install various plugins
Diffstat (limited to '.config/nvim/after/plugin/treesitter.lua')
| -rw-r--r-- | .config/nvim/after/plugin/treesitter.lua | 38 |
1 files changed, 38 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..00aab20 --- /dev/null +++ b/.config/nvim/after/plugin/treesitter.lua @@ -0,0 +1,38 @@ +require'nvim-treesitter.configs'.setup { + -- A list of parser names, or "all" + ensure_installed = { + "bash", + "c", + "css", + "dockerfile", + "gitignore", + "help", + "html", + "javascript", + "json", + "lua", + "markdown", + "php", + "typescript", + "yaml", + }, + + -- 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 = { + -- `false` will disable the whole extension + 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 = true, + }, +} + |
