Compare commits

..

1 commit

Author SHA1 Message Date
raf
4075dc6654
Merge 516174e296 into 8997e62b3b 2024-11-09 21:55:17 +00:00
2 changed files with 1 additions and 5 deletions

View file

@ -309,7 +309,6 @@ To migrate to `nixfmt`, simply change `vim.languages.nix.format.type` to
- Add [Tinymist](https://github.com/Myriad-Dreamin/tinymist] as a formatter for
the Typst language module.
- Add LSP and Treesitter support for Assembly under `vim.languages.assembly`
- Move [which-key](https://github.com/folke/which-key.nvim) to the new spec
[Bloxx12](https://github.com/Bloxx12)

View file

@ -5,12 +5,9 @@
}: let
inherit (lib.modules) mkIf;
inherit (lib.nvim.lua) toLuaObject;
inherit (lib.attrsets) mapAttrsToList;
inherit (lib.generators) mkLuaInline;
inherit (lib.nvim.dag) entryAnywhere;
cfg = config.vim.binds.whichKey;
register = mapAttrsToList (n: v: mkLuaInline "{ '${n}', desc = '${v}' }") cfg.register;
in {
config = mkIf cfg.enable {
vim = {
@ -19,7 +16,7 @@ in {
pluginRC.whichkey = entryAnywhere ''
local wk = require("which-key")
wk.setup (${toLuaObject cfg.setupOpts})
wk.add(${toLuaObject register})
wk.register(${toLuaObject cfg.register})
'';
};
};