diff options
author | Kashieru1987 <mahdichowdhury07@gmail.com> | 2025-03-30 13:38:25 +0100 |
---|---|---|
committer | Kashieru1987 <mahdichowdhury07@gmail.com> | 2025-03-30 13:38:25 +0100 |
commit | 87f42cb4c2abd74d0227cbf7a555a7e28e0c3576 (patch) | |
tree | 34fce0c223b9cf81efad4a0204c44860686d685b /.config/nvim/lua/chronoziel/plugins/treesitter.lua | |
parent | 452f00a528aa4b77a61c53af5c55b197acffef65 (diff) |
added some configs from .config :3HEADdebian-chan
Diffstat (limited to '.config/nvim/lua/chronoziel/plugins/treesitter.lua')
-rw-r--r-- | .config/nvim/lua/chronoziel/plugins/treesitter.lua | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/.config/nvim/lua/chronoziel/plugins/treesitter.lua b/.config/nvim/lua/chronoziel/plugins/treesitter.lua new file mode 100644 index 0000000..710a6f4 --- /dev/null +++ b/.config/nvim/lua/chronoziel/plugins/treesitter.lua @@ -0,0 +1,26 @@ +return { + "nvim-treesitter/nvim-treesitter", + config = function() + require'nvim-treesitter.configs'.setup { + -- A list of parser names, or "all" (the listed parsers MUST always be installed) + ensure_installed = { "c", "lua", "java", "rust", "vim", "vimdoc", "query", "markdown", "markdown_inline" }, + + -- 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, + }, + } + end +} |