modules/projects: switch to explicit lib calls

This commit is contained in:
raf 2024-03-12 03:48:38 +03:00
commit b54032f3f3
No known key found for this signature in database
GPG key ID: 02D1DD3FA08B6B29
4 changed files with 18 additions and 18 deletions

View file

@ -3,7 +3,10 @@
lib,
...
}: let
inherit (lib) mkIf nvim boolToString concatStringsSep;
inherit (lib.modules) mkIf;
inherit (lib.trivial) boolToString;
inherit (lib.strings) concatStringsSep;
inherit (lib.nvim.dag) entryAnywhere;
cfg = config.vim.projects.project-nvim;
in {
@ -12,7 +15,7 @@ in {
"project-nvim"
];
vim.luaConfigRC.project-nvim = nvim.dag.entryAnywhere ''
vim.luaConfigRC.project-nvim = entryAnywhere ''
require('project_nvim').setup({
manual_mode = ${boolToString cfg.manualMode},
detection_methods = { ${concatStringsSep ", " (map (x: "\"" + x + "\"") cfg.detectionMethods)} },