mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2024-12-24 19:19:48 +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})
|
|
'';
|
|
};
|
|
}
|