mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-09-06 18:31:35 +00:00
binds/qmk: Rename to vim.utility.qmk
Move the `vim.binds.qmk` module to `vim.utility.qmk`.
This commit is contained in:
parent
ff81c41d61
commit
ea55488f04
7 changed files with 5 additions and 6 deletions
|
@ -1,26 +0,0 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
inherit (lib.modules) mkIf;
|
||||
inherit (lib.nvim.lua) toLuaObject;
|
||||
inherit (lib.nvim.dag) entryAfter;
|
||||
|
||||
cfg = config.vim.binds.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";
|
||||
}];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue