mirror of
https://github.com/NotAShelf/nvf.git
synced 2024-11-27 07:26:46 +00:00
20 lines
341 B
Nix
20 lines
341 B
Nix
{
|
|
config,
|
|
lib,
|
|
...
|
|
}: let
|
|
inherit (lib) mkIf nvim;
|
|
|
|
cfg = config.vim.projects.project-nvim;
|
|
in {
|
|
config = mkIf cfg.enable {
|
|
vim.startPlugins = [
|
|
"project-nvim"
|
|
];
|
|
|
|
vim.luaConfigRC.project-nvim = nvim.dag.entryAnywhere ''
|
|
require('project_nvim').setup(${nvim.lua.toLuaObject cfg.setupOpts})
|
|
'';
|
|
};
|
|
}
|