feat: Make cmd
This commit is contained in:
parent
9d922f8de5
commit
07c399dbd8
7 changed files with 197 additions and 7 deletions
|
@ -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 = "*"})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue