mirror of
https://github.com/NotAShelf/nvf.git
synced 2026-04-07 03:19:34 +00:00
ui/modes: rename to 'modes-nvim'; convert to freeform setupOpts
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: Ic9ce8702bca16c6a2f10bd35c9b194a36a6a6964
This commit is contained in:
parent
f298adc193
commit
228d6490c3
4 changed files with 48 additions and 55 deletions
|
|
@ -1,21 +0,0 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
inherit (lib.modules) mkIf;
|
||||
inherit (lib.nvim.dag) entryAnywhere;
|
||||
inherit (lib.nvim.lua) toLuaObject;
|
||||
|
||||
cfg = config.vim.ui.modes-nvim;
|
||||
in {
|
||||
config = mkIf cfg.enable {
|
||||
vim.startPlugins = [
|
||||
"modes-nvim"
|
||||
];
|
||||
|
||||
vim.pluginRC.modes-nvim = entryAnywhere ''
|
||||
require('modes').setup(${toLuaObject cfg.setupOpts})
|
||||
'';
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue