aboutsummaryrefslogtreecommitdiffstats
path: root/plugin/nvim-treesitter.vim
diff options
context:
space:
mode:
authorkiyan42 <yazdani.kiyan@protonmail.com>2020-06-20 12:21:42 +0200
committerkiyan42 <yazdani.kiyan@protonmail.com>2020-06-20 12:31:52 +0200
commitdf17a48c85b8e47bc4982b640dbb686e372cd81e (patch)
treea3071e4c045485bf70b4d508887305d4f279a8c7 /plugin/nvim-treesitter.vim
parentfix: declare parse names as their appropriate filetype and change clone url (diff)
downloadnvim-treesitter-df17a48c85b8e47bc4982b640dbb686e372cd81e.tar
nvim-treesitter-df17a48c85b8e47bc4982b640dbb686e372cd81e.tar.gz
nvim-treesitter-df17a48c85b8e47bc4982b640dbb686e372cd81e.tar.bz2
nvim-treesitter-df17a48c85b8e47bc4982b640dbb686e372cd81e.tar.lz
nvim-treesitter-df17a48c85b8e47bc4982b640dbb686e372cd81e.tar.xz
nvim-treesitter-df17a48c85b8e47bc4982b640dbb686e372cd81e.tar.zst
nvim-treesitter-df17a48c85b8e47bc4982b640dbb686e372cd81e.zip
refactor: parser list and lang->ft/ft->lang
- move parser list in `parsers.lua` - most `ft` variable where changed to `lang`, `ft` is only used on autocmd binding, and lang is used for everything else. Functions have been defined to make the switch between `ft` and `lang`
Diffstat (limited to 'plugin/nvim-treesitter.vim')
-rw-r--r--plugin/nvim-treesitter.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugin/nvim-treesitter.vim b/plugin/nvim-treesitter.vim
index 30ee3241d..4769680a3 100644
--- a/plugin/nvim-treesitter.vim
+++ b/plugin/nvim-treesitter.vim
@@ -11,7 +11,7 @@ let g:loaded_nvim_treesitter = 1
lua << EOF
ts_installable_parsers = function()
- return table.concat(require'nvim-treesitter.configs'.available_parsers(), '\n')
+ return table.concat(require'nvim-treesitter.parsers'.available_parsers(), '\n')
end
ts_available_modules = function()
return table.concat(require'nvim-treesitter.configs'.available_modules(), '\n')