summaryrefslogtreecommitdiffstats
path: root/plugin
diff options
context:
space:
mode:
authorkiyan42 <yazdani.kiyan@protonmail.com>2020-04-21 23:40:23 +0200
committerkiyan42 <yazdani.kiyan@protonmail.com>2020-04-21 23:40:23 +0200
commit62ce7744db02f17b77147683b4eaa884d7f2f1f5 (patch)
treeb569c95e6d32e24c94012303fd79f284880eab52 /plugin
parentMerge pull request #16 from kyazdani42/fix-compiling-parser (diff)
downloadnvim-treesitter-62ce7744db02f17b77147683b4eaa884d7f2f1f5.tar
nvim-treesitter-62ce7744db02f17b77147683b4eaa884d7f2f1f5.tar.gz
nvim-treesitter-62ce7744db02f17b77147683b4eaa884d7f2f1f5.tar.bz2
nvim-treesitter-62ce7744db02f17b77147683b4eaa884d7f2f1f5.tar.lz
nvim-treesitter-62ce7744db02f17b77147683b4eaa884d7f2f1f5.tar.xz
nvim-treesitter-62ce7744db02f17b77147683b4eaa884d7f2f1f5.tar.zst
nvim-treesitter-62ce7744db02f17b77147683b4eaa884d7f2f1f5.zip
feat/refacto: add configs.lua, setup install
- configs.lua holds the `repositories` data - install health moved to health.lua - plugins loads _root.setup() on startup - install and list command are available through vim > use them with `:TSInstall lang` and `:TSInstallInfo`
Diffstat (limited to 'plugin')
-rw-r--r--plugin/nvim-treesitter.vim7
1 files changed, 7 insertions, 0 deletions
diff --git a/plugin/nvim-treesitter.vim b/plugin/nvim-treesitter.vim
index 03b738763..06c760a18 100644
--- a/plugin/nvim-treesitter.vim
+++ b/plugin/nvim-treesitter.vim
@@ -4,6 +4,13 @@ if exists('g:loaded_nvim_treesitter')
finish
endif
+lua << EOF
+ts_installable_parsers = function()
+ return table.concat(require'nvim-treesitter'.available_parsers(), '\n')
+end
+require'nvim-treesitter'._root.setup()
+EOF
+
let g:loaded_nvim_treesitter = 1
augroup NvimTreesitter