diff options
| author | kiyan42 <yazdani.kiyan@protonmail.com> | 2020-04-21 23:40:23 +0200 |
|---|---|---|
| committer | kiyan42 <yazdani.kiyan@protonmail.com> | 2020-04-21 23:40:23 +0200 |
| commit | 62ce7744db02f17b77147683b4eaa884d7f2f1f5 (patch) | |
| tree | b569c95e6d32e24c94012303fd79f284880eab52 /plugin/nvim-treesitter.vim | |
| parent | Merge pull request #16 from kyazdani42/fix-compiling-parser (diff) | |
| download | nvim-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/nvim-treesitter.vim')
| -rw-r--r-- | plugin/nvim-treesitter.vim | 7 |
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 |
