From 9b63ac826e2d70418337be5218e9ce645ed89200 Mon Sep 17 00:00:00 2001 From: NotAShelf Date: Sun, 22 Oct 2023 18:08:48 +0300 Subject: [PATCH] languages/bash: use mkEnableOption for enable options --- modules/languages/bash/bash.nix | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/modules/languages/bash/bash.nix b/modules/languages/bash/bash.nix index 87385755..150ad0d1 100644 --- a/modules/languages/bash/bash.nix +++ b/modules/languages/bash/bash.nix @@ -61,11 +61,7 @@ in { enable = mkEnableOption "Bash language support"; treesitter = { - enable = mkOption { - description = "Bash treesitter"; - type = types.bool; - default = config.vim.languages.enableTreesitter; - }; + enable = mkEnableOption "Bash treesitter" // {default = config.vim.languages.enableTreesitter;}; package = lib.nvim.types.mkGrammarOption pkgs "bash"; }; @@ -106,11 +102,8 @@ in { }; extraDiagnostics = { - enable = mkOption { - description = "Enable extra Bash diagnostics"; - type = types.bool; - default = config.vim.languages.enableExtraDiagnostics; - }; + enable = mkEnableOption "extra Bash diagnostics" // {default = config.vim.languages.enableExtraDiagnostics;}; + types = lib.nvim.types.diagnostics { langDesc = "Bash"; inherit diagnostics;