mirror of
https://github.com/NotAShelf/nvf.git
synced 2024-11-27 15:36:46 +00:00
517a6aa06e
honestly raf was cooking with this one. it's much nicer to use compared to interpolation lol
22 lines
385 B
Nix
22 lines
385 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})
|
|
'';
|
|
};
|
|
}
|