mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-02-23 20:08:30 +00:00
20 lines
391 B
Nix
20 lines
391 B
Nix
{
|
|
config,
|
|
lib,
|
|
...
|
|
}: let
|
|
inherit (lib.modules) mkIf;
|
|
|
|
cfg = config.vim.utility.motion.precognition;
|
|
in {
|
|
config =
|
|
mkIf cfg.enable
|
|
{
|
|
vim = {
|
|
startPlugins = ["precognition-nvim"];
|
|
luaConfigRC.precognition = lib.nvim.dag.entryAnywhere ''
|
|
require('precognition').setup(${lib.nvim.lua.toLuaObject cfg.setupOpts})
|
|
'';
|
|
};
|
|
};
|
|
}
|