neovim-flake/modules/plugins/utility/motion/precognition/config.nix

22 lines
385 B
Nix
Raw Normal View History

2024-11-04 01:25:24 +01:00
{
config,
lib,
...
}: let
inherit (lib.modules) mkIf;
cfg = config.vim.utility.motion.precognition;
2024-11-04 01:25:24 +01: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 01:25:24 +01:00
'';
};
}