mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-09-06 10:21:31 +00:00
feat: modes.nvim
This commit is contained in:
parent
562230a625
commit
fccfff474a
9 changed files with 116 additions and 0 deletions
20
modules/ui/modes/config.nix
Normal file
20
modules/ui/modes/config.nix
Normal 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()
|
||||
'';
|
||||
};
|
||||
}
|
6
modules/ui/modes/default.nix
Normal file
6
modules/ui/modes/default.nix
Normal file
|
@ -0,0 +1,6 @@
|
|||
_: {
|
||||
imports = [
|
||||
./modes.nix
|
||||
./config.nix
|
||||
];
|
||||
}
|
0
modules/ui/modes/modes.nix
Normal file
0
modules/ui/modes/modes.nix
Normal file
Loading…
Add table
Add a link
Reference in a new issue