mirror of
https://github.com/NotAShelf/nvf.git
synced 2024-11-26 23:16:46 +00:00
languages/bash: use mkEnableOption for enable options
This commit is contained in:
parent
6e448cf958
commit
9b63ac826e
1 changed files with 3 additions and 10 deletions
|
@ -61,11 +61,7 @@ in {
|
||||||
enable = mkEnableOption "Bash language support";
|
enable = mkEnableOption "Bash language support";
|
||||||
|
|
||||||
treesitter = {
|
treesitter = {
|
||||||
enable = mkOption {
|
enable = mkEnableOption "Bash treesitter" // {default = config.vim.languages.enableTreesitter;};
|
||||||
description = "Bash treesitter";
|
|
||||||
type = types.bool;
|
|
||||||
default = config.vim.languages.enableTreesitter;
|
|
||||||
};
|
|
||||||
package = lib.nvim.types.mkGrammarOption pkgs "bash";
|
package = lib.nvim.types.mkGrammarOption pkgs "bash";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -106,11 +102,8 @@ in {
|
||||||
};
|
};
|
||||||
|
|
||||||
extraDiagnostics = {
|
extraDiagnostics = {
|
||||||
enable = mkOption {
|
enable = mkEnableOption "extra Bash diagnostics" // {default = config.vim.languages.enableExtraDiagnostics;};
|
||||||
description = "Enable extra Bash diagnostics";
|
|
||||||
type = types.bool;
|
|
||||||
default = config.vim.languages.enableExtraDiagnostics;
|
|
||||||
};
|
|
||||||
types = lib.nvim.types.diagnostics {
|
types = lib.nvim.types.diagnostics {
|
||||||
langDesc = "Bash";
|
langDesc = "Bash";
|
||||||
inherit diagnostics;
|
inherit diagnostics;
|
||||||
|
|
Loading…
Reference in a new issue