neovim: add follow_url_func option
This commit is contained in:
parent
25452b9540
commit
0b8a730519
1 changed files with 11 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue