neovim-flake/modules/plugins/utility/motion/precognition/config.nix
Nowaaru 517a6aa06e
utility/precognition: convert to setupOpts
honestly raf was cooking with this one.
it's much nicer to use compared to interpolation lol
2024-11-04 23:40:44 -07:00

21 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})
'';
};
}