mirror of
https://github.com/NotAShelf/nvf.git
synced 2024-11-01 19:11:15 +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})
|
|
'';
|
|
};
|
|
}
|