mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 16:39:00 +02:00
modules/filetype: code formatting
This commit is contained in:
parent
1f652b60e5
commit
430c8f672b
1 changed files with 19 additions and 16 deletions
|
@ -5,22 +5,25 @@
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib; let
|
with lib; let
|
||||||
filetypeDefinition = helpers.mkNullOrOption (types.attrsOf (
|
filetypeDefinition =
|
||||||
types.oneOf [
|
helpers.mkNullOrOption
|
||||||
# Raw filetype
|
(with types;
|
||||||
types.str
|
attrsOf (
|
||||||
# Function to set the filetype
|
oneOf [
|
||||||
helpers.rawType
|
# Raw filetype
|
||||||
# ["filetype" {priority = xx;}]
|
str
|
||||||
(types.listOf (types.either types.str (types.submodule {
|
# Function to set the filetype
|
||||||
options = {
|
helpers.rawType
|
||||||
priority = mkOption {
|
# ["filetype" {priority = xx;}]
|
||||||
type = types.int;
|
(listOf (either str (submodule {
|
||||||
};
|
options = {
|
||||||
};
|
priority = mkOption {
|
||||||
})))
|
type = int;
|
||||||
]
|
};
|
||||||
));
|
};
|
||||||
|
})))
|
||||||
|
]
|
||||||
|
));
|
||||||
in {
|
in {
|
||||||
options.filetype =
|
options.filetype =
|
||||||
helpers.mkCompositeOption ''
|
helpers.mkCompositeOption ''
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue