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

@ -4,7 +4,7 @@
lib,
...
}: let
inherit (lib) nvim mkIf mkMerge mkBinding;
inherit (lib) nvim mkIf mkMerge mkBinding defaultAttributes;
cfg = config.vim.utility.preview.glow;
self = import ./glow.nix {
@ -19,6 +19,10 @@ in {
(mkBinding cfg.mappings.openPreview ":Glow<CR>" mappings.openPreview.description)
];
vim.binds.whichKey.register = defaultAttributes {
"<leader>pm" = "+Preview Markdown";
};
vim.luaConfigRC.glow = nvim.dag.entryAnywhere ''
require('glow').setup({
glow_path = "${pkgs.glow}/bin/glow"