2023-04-07 17:35:04 +00:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
...
|
2023-11-07 00:50:27 +00:00
|
|
|
}: let
|
2024-04-19 19:28:07 +00:00
|
|
|
inherit (lib.modules) mkIf;
|
|
|
|
inherit (lib.nvim.dag) entryAnywhere;
|
|
|
|
inherit (lib.nvim.lua) toLuaObject;
|
2023-11-07 00:50:27 +00:00
|
|
|
|
2023-06-05 20:10:25 +00:00
|
|
|
cfg = config.vim.projects.project-nvim;
|
|
|
|
in {
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
vim.startPlugins = [
|
|
|
|
"project-nvim"
|
|
|
|
];
|
|
|
|
|
2024-07-20 08:30:48 +00:00
|
|
|
vim.pluginRC.project-nvim = entryAnywhere ''
|
2024-04-19 19:28:07 +00:00
|
|
|
require('project_nvim').setup(${toLuaObject cfg.setupOpts})
|
2023-06-05 20:10:25 +00:00
|
|
|
'';
|
2023-04-07 17:35:04 +00:00
|
|
|
};
|
|
|
|
}
|