Compare commits
3 Commits
3a4de01868
...
c722c51add
Author | SHA1 | Date |
---|---|---|
iGor milhit | c722c51add | |
iGor milhit | 8799c947d1 | |
iGor milhit | 6799b381be |
|
@ -1,3 +1,4 @@
|
|||
-- Load all module files
|
||||
require("core.python-provider")
|
||||
require("core.keymaps")
|
||||
require("core.options")
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
-- Set a virtualenv as python provider
|
||||
-- https://neovim.io/doc/user/provider.html#python-virtualenv
|
||||
|
||||
vim.g.python3_host_prog = "/home/igor/.pyenv/versions/py-nvim3.10/bin/python"
|
|
@ -0,0 +1,23 @@
|
|||
-- Install and configure zotcite
|
||||
-- https://github.com/jalvesaq/zotcite
|
||||
|
||||
return {
|
||||
"jalvesaq/zotcite",
|
||||
dependencies = {
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
"jalvesaq/cmp-zotcite",
|
||||
},
|
||||
config = function ()
|
||||
require("zotcite").setup({
|
||||
-- waiting for zotcite options
|
||||
})
|
||||
require("cmp_zotcite").setup({
|
||||
filetypes = {
|
||||
"pandoc",
|
||||
"markdown",
|
||||
"rmd",
|
||||
"quarto",
|
||||
}
|
||||
})
|
||||
end
|
||||
}
|
|
@ -107,6 +107,7 @@ return {
|
|||
},
|
||||
{ name = "path" },
|
||||
{ name = "emoji" },
|
||||
{ name = "cmp_zotcite"}
|
||||
}),
|
||||
|
||||
formatting = {
|
||||
|
|
|
@ -226,12 +226,12 @@ return {
|
|||
},
|
||||
fmt(
|
||||
[[
|
||||
{{< blockquote lang="{1}" author="{2}"
|
||||
{{{{< blockquote lang="{1}" author="{2}"
|
||||
title="{3}"
|
||||
link="{4}" >}}
|
||||
link="{4}" >}}}}
|
||||
|
||||
{5}
|
||||
{{< /blockquote >}}
|
||||
{{{{< /blockquote >}}}}
|
||||
]],
|
||||
{
|
||||
i(1, "Lang code"),
|
||||
|
@ -242,4 +242,37 @@ return {
|
|||
}
|
||||
)
|
||||
),
|
||||
s(
|
||||
{
|
||||
trig="st",
|
||||
name = "[hugo] [St]ream shortcode",
|
||||
dscr="Insert the shortcode for a streamed live used in my HUGO website.",
|
||||
docstring = "{{< stream legend=\"[Caption]\" >}}."
|
||||
},
|
||||
fmt(
|
||||
[[
|
||||
{{{{< stream legend="{1} >}}}}"
|
||||
]],
|
||||
{
|
||||
i(1, "Caption"),
|
||||
}
|
||||
)
|
||||
),
|
||||
s(
|
||||
{
|
||||
trig="pl",
|
||||
name = "[hugo] [P]ublished [L]ive shortcode",
|
||||
dscr="Insert the shortcode for a published live used in my HUGO website.",
|
||||
docstring = "{{< published src=\"[source URL]\" legend=\"[Caption]\" >}}."
|
||||
},
|
||||
fmt(
|
||||
[[
|
||||
{{{{< published src="{1}" legend="{2}" >}}}}
|
||||
]],
|
||||
{
|
||||
i(1, "source URL"),
|
||||
i(2, "Caption"),
|
||||
}
|
||||
)
|
||||
),
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue