mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2024-11-08 11:25:58 +01:00
19 lines
369 B
Nix
19 lines
369 B
Nix
{
|
|
config,
|
|
lib,
|
|
...
|
|
}: let
|
|
inherit (lib.modules) mkIf;
|
|
|
|
cfg = config.vim.utility.motion.precognition;
|
|
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})
|
|
'';
|
|
};
|
|
}
|