binds/qmk: Rename to vim.utility.qmk

Move the `vim.binds.qmk` module to `vim.utility.qmk`.
This commit is contained in:
Cool-Game-Dev 2025-08-14 08:52:25 -05:00
commit ea55488f04
No known key found for this signature in database
7 changed files with 5 additions and 6 deletions

View file

@ -0,0 +1,26 @@
{
config,
lib,
...
}: let
inherit (lib.modules) mkIf;
inherit (lib.nvim.lua) toLuaObject;
inherit (lib.nvim.dag) entryAfter;
cfg = config.vim.utility.qmk;
in {
config = mkIf cfg.enable {
vim = {
startPlugins = ["qmk-nvim"];
pluginRC.qmk-nvim = entryAfter ["nvim-notify"] ''
require('qmk').setup(${toLuaObject cfg.setupOpts})
'';
};
assertions = [{
assertion = !(cfg.setupOpts.variant == "zmk") && !(cfg.setupOpts.comment_preview.position == "inside");
message = "comment_preview.position can only be set to inside when using the qmk layoyt";
}];
};
}