aboutsummaryrefslogtreecommitdiff
path: root/.vim/after/plugin/treesitter.vim
diff options
context:
space:
mode:
authorGuangxiong Lin <[email protected]>2022-06-04 16:53:35 +0800
committerGuangxiong Lin <[email protected]>2022-06-04 18:36:58 +0800
commitca6da1729156f74bb36ba94a864ab5e39e78ae3b (patch)
treea8b5d6310eb51a338f9f8808d45a63ce2e5d9b50 /.vim/after/plugin/treesitter.vim
parent07231696a2e090790bda1910ec85a7dec3ecbb69 (diff)
downloaddotfiles-ca6da1729156f74bb36ba94a864ab5e39e78ae3b.tar.gz
dotfiles-ca6da1729156f74bb36ba94a864ab5e39e78ae3b.tar.bz2
dotfiles-ca6da1729156f74bb36ba94a864ab5e39e78ae3b.zip
Try using nvim
Diffstat (limited to '.vim/after/plugin/treesitter.vim')
-rw-r--r--.vim/after/plugin/treesitter.vim20
1 files changed, 20 insertions, 0 deletions
diff --git a/.vim/after/plugin/treesitter.vim b/.vim/after/plugin/treesitter.vim
new file mode 100644
index 0000000..c022662
--- /dev/null
+++ b/.vim/after/plugin/treesitter.vim
@@ -0,0 +1,20 @@
+if !has('nvim')
+ finish
+endif
+
+packadd nvim-treesitter
+
+lua <<EOF
+
+local treesitter_config = require 'nvim-treesitter.configs'
+
+treesitter_config.setup {
+ ensure_installed = { 'c', 'lua', 'gdscript', 'go', 'python' },
+ sync_install = false,
+
+ highlight = {
+ enable = true,
+ },
+}
+
+EOF