project-nvim: init plugin (#55)

This commit is contained in:
Alexander Nortung 2022-10-25 01:15:09 +02:00 committed by GitHub
parent f0ad4cd2ec
commit 9658aaf990
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 107 additions and 0 deletions

View file

@ -105,4 +105,16 @@ rec {
};
mkRaw = r: { __raw = r; };
rawType = types.submodule {
options = {
__raw = mkOption {
type = types.str;
description = "raw lua code";
default = "";
};
};
};
isRawType = v: lib.isAttrs v && lib.hasAttr "__raw" v && lib.isString v.__raw;
}