mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-26 10:48:35 +02:00
project-nvim: init plugin (#55)
This commit is contained in:
parent
f0ad4cd2ec
commit
9658aaf990
5 changed files with 107 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue