diff options
author | Saumit Dinesan <justsaumit@protonmail.com> | 2023-07-14 22:49:04 +0530 |
---|---|---|
committer | Saumit Dinesan <justsaumit@protonmail.com> | 2023-07-14 22:49:04 +0530 |
commit | 0cc4ed7dd6fc5b06de245246723138996d449571 (patch) | |
tree | b8de0f83a99e0123bf740b9c8a278c9cbdc039e9 /.config/nvim/lua/justsaumit/treesitter-config.lua | |
parent | 193034436557fb26adbc26f5fbd847016f6fe0be (diff) |
nvim: Adding basic neovim config
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, + } +} |