Use bang for TSInstall commands

This commit is contained in:
Shane Hird 2021-06-24 22:02:49 +10:00 committed by Stephan Seitz
parent 9bcf658ca4
commit b46580fb66
2 changed files with 22 additions and 24 deletions

View file

@ -6,7 +6,7 @@ local M = {}
function M.setup_commands(mod, commands)
for command_name, def in pairs(commands) do
local call_fn = string.format("lua require'nvim-treesitter.%s'.commands.%s.run(<f-args>)", mod, command_name)
local call_fn = string.format("lua require'nvim-treesitter.%s'.commands.%s.run('<bang>',<f-args>)", mod, command_name)
local parts = vim.tbl_flatten({
"command!",
def.args,