mirror of
https://github.com/nix-community/nixvim.git
synced 2025-11-21 17:59:41 +01:00
treewide: remove internal use of helpers module arg
This commit is contained in:
parent
7add68e918
commit
dad19c1238
68 changed files with 687 additions and 758 deletions
|
|
@ -1,15 +1,10 @@
|
|||
{
|
||||
lib,
|
||||
helpers,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
{ lib, config, ... }:
|
||||
let
|
||||
inherit (lib) types;
|
||||
|
||||
cfg = config.filetype;
|
||||
|
||||
filetypeDefinition = helpers.mkNullOrOption (
|
||||
filetypeDefinition = lib.nixvim.mkNullOrOption (
|
||||
with types;
|
||||
attrsOf (oneOf [
|
||||
# Raw filetype
|
||||
|
|
@ -42,7 +37,7 @@ let
|
|||
in
|
||||
{
|
||||
options.filetype =
|
||||
helpers.mkCompositeOption
|
||||
lib.nixvim.mkCompositeOption
|
||||
''
|
||||
Define additional filetypes. The values can either be a literal filetype or a function
|
||||
taking the filepath and the buffer number.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue