summaryrefslogtreecommitdiff
path: root/nvim/.config/nvim/lua/treesitter_config.lua
diff options
context:
space:
mode:
Diffstat (limited to 'nvim/.config/nvim/lua/treesitter_config.lua')
-rw-r--r--nvim/.config/nvim/lua/treesitter_config.lua24
1 files changed, 24 insertions, 0 deletions
diff --git a/nvim/.config/nvim/lua/treesitter_config.lua b/nvim/.config/nvim/lua/treesitter_config.lua
new file mode 100644
index 0000000..8e4d4a8
--- /dev/null
+++ b/nvim/.config/nvim/lua/treesitter_config.lua
@@ -0,0 +1,24 @@
+require("nvim-treesitter.configs").setup {
+ -- one of "all", "maintained" (parsers with maintainers), or a list of languages
+ ensure_installed = "maintained",
+
+ -- install languages synchronously (only applied to `ensure_installed`)
+ sync_install = false,
+
+ -- List of parsers to ignore installing
+ -- ignore_install = { "javascript" },
+
+ highlight = {
+ -- false will disable the whole extension
+ enable = true,
+
+ -- list of language that will be disabled
+ -- disable = { "c", "rust" },
+
+ -- 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,
+ },
+}