mirror of
https://github.com/NotAShelf/nvf.git
synced 2026-04-05 18:40:53 +00:00
Merge branch 'main' into push-xqomlsslywmq
This commit is contained in:
commit
5f3995f05e
3 changed files with 52 additions and 14 deletions
|
|
@ -4,9 +4,7 @@
|
|||
...
|
||||
}: let
|
||||
inherit (lib.modules) mkIf mkMerge;
|
||||
inherit (lib.nvim.dag) entryAnywhere;
|
||||
inherit (lib.nvim.binds) pushDownDefault;
|
||||
inherit (lib.nvim.lua) toLuaObject;
|
||||
|
||||
cfg = config.vim.notes.neorg;
|
||||
in {
|
||||
|
|
@ -19,17 +17,21 @@ in {
|
|||
"nvim-nio"
|
||||
"pathlib-nvim"
|
||||
"plenary-nvim"
|
||||
"neorg"
|
||||
"neorg-telescope"
|
||||
];
|
||||
|
||||
lazy.plugins.neorg = {
|
||||
package = "neorg";
|
||||
setupModule = "neorg";
|
||||
inherit (cfg) setupOpts;
|
||||
|
||||
ft = ["norg"];
|
||||
cmd = ["Neorg"];
|
||||
};
|
||||
|
||||
binds.whichKey.register = pushDownDefault {
|
||||
"<leader>o" = "+Notes";
|
||||
};
|
||||
|
||||
pluginRC.neorg = entryAnywhere ''
|
||||
require('neorg').setup(${toLuaObject cfg.setupOpts})
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -5,22 +5,32 @@
|
|||
}: let
|
||||
inherit (lib.modules) mkIf mkMerge;
|
||||
inherit (lib.generators) mkLuaInline;
|
||||
inherit (lib.nvim.dag) entryAnywhere;
|
||||
inherit (lib.nvim.lua) toLuaObject;
|
||||
|
||||
cfg = config.vim.notes.obsidian;
|
||||
in {
|
||||
config = mkIf cfg.enable {
|
||||
vim = {
|
||||
startPlugins = [
|
||||
"obsidian-nvim"
|
||||
"vim-markdown"
|
||||
"tabular"
|
||||
"plenary-nvim"
|
||||
];
|
||||
|
||||
pluginRC.obsidian = entryAnywhere ''
|
||||
require("obsidian").setup(${toLuaObject cfg.setupOpts})
|
||||
'';
|
||||
lazy.plugins.obsidian-nvim = {
|
||||
package = "obsidian-nvim";
|
||||
# NOTE: packaged plugin directory is `obsidian.nvim`; loading by the
|
||||
# spec key (`obsidian-nvim`) misses and makes `require("obsidian")`
|
||||
# resolve to a loader function via lzn-auto-require.
|
||||
# I don't love this, but I can't think of anything better
|
||||
load = ''
|
||||
vim.cmd.packadd("obsidian.nvim")
|
||||
'';
|
||||
setupModule = "obsidian";
|
||||
inherit (cfg) setupOpts;
|
||||
|
||||
ft = ["markdown"];
|
||||
cmd = ["Obsidian"];
|
||||
};
|
||||
|
||||
notes.obsidian.setupOpts = let
|
||||
# may not be defined
|
||||
|
|
|
|||
|
|
@ -14,6 +14,32 @@ in {
|
|||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
vim.startPlugins = [pkgs.vimPlugins.conjure];
|
||||
vim.lazy.plugins.conjure = {
|
||||
package = pkgs.vimPlugins.conjure;
|
||||
ft = [
|
||||
"clojure"
|
||||
"fennel"
|
||||
"janet"
|
||||
"hy"
|
||||
"julia"
|
||||
"racket"
|
||||
"scheme"
|
||||
"lua"
|
||||
"lisp"
|
||||
"python"
|
||||
"rust"
|
||||
"sql"
|
||||
"javascript"
|
||||
"typescript"
|
||||
"php"
|
||||
"r"
|
||||
];
|
||||
cmd = [
|
||||
"ConjureSchool"
|
||||
"ConjureEval"
|
||||
"ConjureConnect"
|
||||
"ConjureClientState"
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue