mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2024-12-28 16:19:49 +01:00
19 lines
341 B
Nix
19 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})
|
|
'';
|
|
};
|
|
}
|