From 2967ca5203cd3a3d0315b2101c66e4f0ee5f421a Mon Sep 17 00:00:00 2001 From: kiyan42 Date: Sun, 19 Apr 2020 14:43:55 +0200 Subject: add parser installer --- lua/nvim-treesitter.lua | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lua/nvim-treesitter.lua') diff --git a/lua/nvim-treesitter.lua b/lua/nvim-treesitter.lua index ab3edf071..abb3b6d91 100644 --- a/lua/nvim-treesitter.lua +++ b/lua/nvim-treesitter.lua @@ -1,5 +1,6 @@ local api = vim.api local parsers = require'nvim-treesitter.parsers' +local install = require'nvim-treesitter.install' local M = {} @@ -10,4 +11,8 @@ function M.setup(lang) end end +-- To install, run `:lua require'nvim-treesitter'.install_parser('language')` +-- we should add a vim layer over the lua function +M.install_parser = install.install_parser + return M -- cgit v1.2.3-70-g09d2