diff options
Diffstat (limited to '.config/nvim/lua/justsaumit/treesitter-config.lua')
-rw-r--r-- | .config/nvim/lua/justsaumit/treesitter-config.lua | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/.config/nvim/lua/justsaumit/treesitter-config.lua b/.config/nvim/lua/justsaumit/treesitter-config.lua new file mode 100644 index 0000000..17dbc62 --- /dev/null +++ b/.config/nvim/lua/justsaumit/treesitter-config.lua @@ -0,0 +1,20 @@ +require'nvim-treesitter.configs'.setup { + -- A list of parser names, or "all" + ensure_installed = { "bash", "c", "cpp","lua", "rust", "python", "go","html", "javascript", "latex", "markdown", "solidity", "sxhkdrc" }, + -- Install parsers synchronously (only applied to `ensure_installed`) + sync_install = false, + + -- Automatically install missing parsers when entering buffer + auto_install = true, + + -- List of parsers to ignore installing (for "all") + highlight = { + -- `false` will disable the whole extension + enable = true, + -- Instead of true it can also be a list of languages + additional_vim_regex_highlighting = false, + }, + autotag = { + enable = true, + } +} |