mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-17 10:50:06 -04:00
Add ensure_installed option to config
This commit is contained in:
parent
6b2d76153f
commit
fc88339832
1 changed files with 3 additions and 0 deletions
|
|
@ -325,6 +325,9 @@ function M.setup(user_data)
|
||||||
if config[mod].keymaps and type(data.keymaps) == 'table' then
|
if config[mod].keymaps and type(data.keymaps) == 'table' then
|
||||||
config[mod].keymaps = data.keymaps
|
config[mod].keymaps = data.keymaps
|
||||||
end
|
end
|
||||||
|
if mod == 'ensure_installed' then
|
||||||
|
require'nvim-treesitter/install'.ensure_installed(data)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue