mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 08:35:43 +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,17 +5,20 @@
|
|||
...
|
||||
}:
|
||||
with lib; let
|
||||
filetypeDefinition = helpers.mkNullOrOption (types.attrsOf (
|
||||
types.oneOf [
|
||||
filetypeDefinition =
|
||||
helpers.mkNullOrOption
|
||||
(with types;
|
||||
attrsOf (
|
||||
oneOf [
|
||||
# Raw filetype
|
||||
types.str
|
||||
str
|
||||
# Function to set the filetype
|
||||
helpers.rawType
|
||||
# ["filetype" {priority = xx;}]
|
||||
(types.listOf (types.either types.str (types.submodule {
|
||||
(listOf (either str (submodule {
|
||||
options = {
|
||||
priority = mkOption {
|
||||
type = types.int;
|
||||
type = int;
|
||||
};
|
||||
};
|
||||
})))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue