neovim-flake/modules/projects/project-nvim/config.nix
2024-04-04 18:01:12 +00:00

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})
'';
};
}