chore: remove useless code and indent files

This commit is contained in:
kiyan 2021-02-22 23:01:12 +01:00 committed by Kiyan
parent 91a89aa408
commit 9d57216c0d
10 changed files with 91 additions and 109 deletions

View file

@ -8,11 +8,11 @@ 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 parts = vim.tbl_flatten({
"command!",
def.args,
command_name,
call_fn,
})
"command!",
def.args,
command_name,
call_fn,
})
api.nvim_command(table.concat(parts, " "))
end
end