Add ensure_installed option to config

This commit is contained in:
Stephan Seitz 2020-05-01 10:20:19 +02:00
parent 6b2d76153f
commit fc88339832

View file

@ -325,6 +325,9 @@ function M.setup(user_data)
if config[mod].keymaps and type(data.keymaps) == 'table' then
config[mod].keymaps = data.keymaps
end
if mod == 'ensure_installed' then
require'nvim-treesitter/install'.ensure_installed(data)
end
end
end
end