neovim: add follow_url_func option

This commit is contained in:
ooks-io 2025-01-14 12:29:28 +11:00
parent 25452b9540
commit 0b8a730519

View file

@ -86,6 +86,17 @@ in {
Customize how a note ID is generated given an optional title
'';
};
follow_url_func = mkOption {
type = nullOr luaInline;
default =
mkLuaInline
# lua
''
function(url)
vim.fn.jobstart({"xdg-open", url})
end
'';
};
ui = {
enable = mkOption {
type = nullOr bool;