Compare commits
3 Commits
7b4c3a3f3a
...
c65f52d98d
Author | SHA1 | Date | |
---|---|---|---|
c65f52d98d | |||
dfe58a4da8 | |||
59a66f8d5d |
@ -138,16 +138,16 @@ end
|
|||||||
function M.compile(file)
|
function M.compile(file)
|
||||||
file = gf(file)
|
file = gf(file)
|
||||||
local subdir = M.dbg_dir(file)
|
local subdir = M.dbg_dir(file)
|
||||||
vim.fn.execute("make " .. subdir .. "/binary " .. "-f $XDG_CONFIG_HOME/nvim/makefile")
|
vim.cmd.make(subdir .. "/binary " .. "-f $XDG_CONFIG_HOME/nvim/makefile")
|
||||||
end
|
end
|
||||||
|
|
||||||
keymap("<leader>dc", M.compile)
|
keymap("<leader>dc", M.compile, { silent = false })
|
||||||
|
|
||||||
function M.write_input(file)
|
function M.write_input(file)
|
||||||
-- store ad hoc test input from clipboard
|
-- store ad hoc test input from clipboard
|
||||||
file = gf(file)
|
file = gf(file)
|
||||||
local inp_file = M.dbg_dir(file) .. "/input"
|
local inp_file = M.dbg_dir(file) .. "/input"
|
||||||
vim.fn.writefile(vim.fn.getreg("+", 1, 1), inp_file)
|
print(vim.fn.writefile(vim.fn.getreg("+", 1, 1), inp_file))
|
||||||
end
|
end
|
||||||
|
|
||||||
function M.run_input(file)
|
function M.run_input(file)
|
||||||
|
@ -97,5 +97,5 @@ return {
|
|||||||
title: "{}",
|
title: "{}",
|
||||||
stat: "{}",
|
stat: "{}",
|
||||||
)
|
)
|
||||||
]], { i(1), i(2), i(3, "incomplete") })),
|
]], { i(1), i(2), t("incomplete") })),
|
||||||
}
|
}
|
||||||
|
@ -61,6 +61,7 @@ find ~/quar \
|
|||||||
-name '*.mov' -o \
|
-name '*.mov' -o \
|
||||||
-name '*.MOV' -o \
|
-name '*.MOV' -o \
|
||||||
-name '*.mp4' -o \
|
-name '*.mp4' -o \
|
||||||
|
-name '*.MP4' -o \
|
||||||
-name '*.jpg' -o \
|
-name '*.jpg' -o \
|
||||||
-name '*.png' -o \
|
-name '*.png' -o \
|
||||||
-name '*.jpeg' -o \
|
-name '*.jpeg' -o \
|
||||||
|
Loading…
Reference in New Issue
Block a user