Compare commits
No commits in common. "924582ab6b964378dce6ed2c1300ff5e2d3d1674" and "bcc2d9db1954f167f9a2473e3b1ae089a0d8245a" have entirely different histories.
924582ab6b
...
bcc2d9db19
2 changed files with 20 additions and 23 deletions
|
@ -7,7 +7,7 @@ import std/[
|
||||||
|
|
||||||
switch("hint","[Conf]:off")
|
switch("hint","[Conf]:off")
|
||||||
|
|
||||||
proc forwardArgs(task_name: string): seq[string] =
|
proc forward_args(task_name: string): seq[string] =
|
||||||
let args = command_line_params()
|
let args = command_line_params()
|
||||||
let arg_start = args.find(task_name) + 1
|
let arg_start = args.find(task_name) + 1
|
||||||
return args[arg_start..^1]
|
return args[arg_start..^1]
|
||||||
|
@ -102,10 +102,7 @@ task b, fmt"build binary, default: {name}":
|
||||||
setCommand "c",""
|
setCommand "c",""
|
||||||
|
|
||||||
task updateLock, "workaround for nimble lock probs":
|
task updateLock, "workaround for nimble lock probs":
|
||||||
let params = forwardArgs("updateLock")
|
let nimbleFile = projectDir().lastPathPart & ".nimble"
|
||||||
let nimbleFile =
|
|
||||||
if params.len == 1: params[0]
|
|
||||||
else: projectDir().lastPathPart & ".nimble"
|
|
||||||
if not fileExists nimbleFile:
|
if not fileExists nimbleFile:
|
||||||
quit "expected to find: " & nimbleFile
|
quit "expected to find: " & nimbleFile
|
||||||
rmDir "nimbledeps"
|
rmDir "nimbledeps"
|
||||||
|
|
|
@ -1,23 +1,23 @@
|
||||||
return {
|
return {
|
||||||
require("util").setup_lang({ treesitter = { "markdown", "markdown_inline" } }),
|
require("util").setup_lang({ treesitter = { "markdown", "markdown_inline" } }),
|
||||||
-- {
|
{
|
||||||
-- "iamcco/markdown-preview.nvim",
|
"iamcco/markdown-preview.nvim",
|
||||||
-- cmd = { "MarkdownPreviewToggle", "MarkdownPreview", "MarkdownPreviewStop" },
|
cmd = { "MarkdownPreviewToggle", "MarkdownPreview", "MarkdownPreviewStop" },
|
||||||
-- build = function()
|
build = function()
|
||||||
-- vim.fn["mkdp#util#install"]()
|
vim.fn["mkdp#util#install"]()
|
||||||
-- end,
|
end,
|
||||||
-- keys = {
|
keys = {
|
||||||
-- {
|
{
|
||||||
-- "<leader>cp",
|
"<leader>cp",
|
||||||
-- ft = "markdown",
|
ft = "markdown",
|
||||||
-- "<cmd>MarkdownPreviewToggle<cr>",
|
"<cmd>MarkdownPreviewToggle<cr>",
|
||||||
-- desc = "Markdown Preview",
|
desc = "Markdown Preview",
|
||||||
-- },
|
},
|
||||||
-- },
|
},
|
||||||
-- config = function()
|
config = function()
|
||||||
-- vim.cmd([[do FileType]])
|
vim.cmd([[do FileType]])
|
||||||
-- end,
|
end,
|
||||||
-- },
|
},
|
||||||
{
|
{
|
||||||
"MeanderingProgrammer/render-markdown.nvim",
|
"MeanderingProgrammer/render-markdown.nvim",
|
||||||
opts = {
|
opts = {
|
||||||
|
|
Loading…
Reference in a new issue