feat: Make cmd

This commit is contained in:
davidon-top 2023-09-23 23:29:54 +02:00
parent 9d922f8de5
commit 07c399dbd8
7 changed files with 197 additions and 7 deletions

View file

@ -80,3 +80,12 @@ end, {})
vim.api.nvim_create_user_command("RetabFile", function ()
vim.cmd(":set ts=2 sts=2 noet | retab! | set ts=4 sts=4 et | retab!")
end, {})
vim.api.nvim_create_user_command("Make", function (args)
local vimCmd = "TermExec cmd=\"make"
if (args["args"]) then
vimCmd = vimCmd .. " " .. args["args"]
end
vimCmd = vimCmd .. "\""
vim.cmd(vimCmd)
end, {nargs = "*"})