feat: modes.nvim

This commit is contained in:
NotAShelf 2023-04-03 12:12:05 +03:00
commit fccfff474a
No known key found for this signature in database
GPG key ID: 05A3BD53FEB32B81
9 changed files with 116 additions and 0 deletions

View file

@ -0,0 +1,20 @@
{
pkgs,
config,
lib,
...
}:
with lib;
with builtins; let
cfg = config.vim.ui.modes-nvim;
in {
config = mkIf cfg.enable {
vim.startPlugins = [
"modes-nvim"
];
vim.luaConfigRC.modes-nvim = nvim.dag.entryAnywhere ''
require('modes').setup()
'';
};
}

View file

@ -0,0 +1,6 @@
_: {
imports = [
./modes.nix
./config.nix
];
}

View file