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

20 lines
369 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
{
2024-11-07 06:47:44 +01:00
vim.startPlugins = ["precognition-nvim"];
2024-11-04 01:25:24 +01:00
vim.luaConfigRC.precognition = lib.nvim.dag.entryAnywhere ''
require('precognition').setup(${lib.nvim.lua.toLuaObject cfg.setupOpts})
2024-11-04 01:25:24 +01:00
'';
};
}