treewide: register whichKey labels

This commit is contained in:
Frothy 2024-02-25 11:39:05 -05:00
commit b9aa7088b8
12 changed files with 69 additions and 12 deletions

View file

@ -3,7 +3,7 @@
lib,
...
}: let
inherit (lib) mkIf nvim;
inherit (lib) mkIf nvim defaultAttributes;
cfg = config.vim.notes.mind-nvim;
in {
@ -18,6 +18,10 @@ in {
"<leader>oc" = {action = ":MindClose<CR>";};
};
vim.binds.whichKey.register = defaultAttributes {
"<leader>o" = "+Notes";
};
vim.luaConfigRC.mind-nvim = nvim.dag.entryAnywhere ''
require'mind'.setup()
'';

View file

@ -3,7 +3,7 @@
lib,
...
}: let
inherit (lib) mkIf nvim;
inherit (lib) mkIf nvim defaultAttributes;
cfg = config.vim.notes.obsidian;
auto = config.vim.autocomplete;
@ -15,6 +15,10 @@ in {
"tabular"
];
vim.binds.whichKey.register = defaultAttributes {
"<leader>o" = "+Notes";
};
vim.luaConfigRC.obsidian = nvim.dag.entryAnywhere ''
require("obsidian").setup({
dir = "${cfg.dir}",

View file

@ -3,7 +3,7 @@
lib,
...
}: let
inherit (lib) mkIf mkMerge nvim;
inherit (lib) mkIf mkMerge nvim defaultAttributes;
cfg = config.vim.notes.orgmode;
in {
@ -13,6 +13,10 @@ in {
"orgmode-nvim"
];
vim.binds.whichKey.register = defaultAttributes {
"<leader>o" = "+Notes";
};
vim.luaConfigRC.orgmode = nvim.dag.entryAnywhere ''
-- Load custom treesitter grammar for org filetype
require('orgmode').setup_ts_grammar()