aboutsummaryrefslogtreecommitdiff
path: root/treesitter.lua
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2022-03-02 07:24:22 +0000
committerJuan J. Martinez <jjm@usebox.net>2022-05-29 22:57:31 +0100
commit0790233d1ea38eb37a134e9ca620b2d989a75c80 (patch)
tree5c2aaa8222f27dd93a7a52e8beb82521172bed5b /treesitter.lua
parent0a932e8f8047864d5b901cd1ccf889b67ae3e73f (diff)
downloaddotnvim-0790233d1ea38eb37a134e9ca620b2d989a75c80.tar.gz
dotnvim-0790233d1ea38eb37a134e9ca620b2d989a75c80.zip
Treesitter support
Diffstat (limited to 'treesitter.lua')
-rw-r--r--treesitter.lua16
1 files changed, 16 insertions, 0 deletions
diff --git a/treesitter.lua b/treesitter.lua
new file mode 100644
index 0000000..76665bd
--- /dev/null
+++ b/treesitter.lua
@@ -0,0 +1,16 @@
+-- syntax highlighting via treesitter
+--
+-- use :TSInstall <lang> to install languages
+--
+-- go, scala, c, python, ...
+--
+require'nvim-treesitter.configs'.setup {
+ 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,
+ },
+}