nvf/modules/plugins/utility/motion/precognition/config.nix

22 lines
385 B
Nix
Raw Normal View History

2024-11-04 00:25:24 +00:00
{
config,
lib,
...
}: let
inherit (lib.modules) mkIf;
cfg = config.vim.utility.motion.precognition;
2024-11-04 00:25:24 +00:00
in {
config =
mkIf cfg.enable
{
vim.startPlugins = [
"precognition-nvim"
];
vim.luaConfigRC.precognition = lib.nvim.dag.entryAnywhere ''
require('precognition').setup(${lib.nvim.lua.toLuaObject cfg.setupOpts})
2024-11-04 00:25:24 +00:00
'';
};
}