mirror of
https://github.com/NotAShelf/nvf.git
synced 2026-02-05 03:15:53 +00:00
review mods
This commit is contained in:
parent
10fd334227
commit
c7afc0c766
2 changed files with 6 additions and 14 deletions
|
|
@ -4,11 +4,11 @@
|
|||
lib,
|
||||
...
|
||||
}: let
|
||||
inherit (builtins) attrNames concatStringsSep;
|
||||
inherit (builtins) attrNames;
|
||||
inherit (lib.options) mkEnableOption mkOption;
|
||||
inherit (lib.modules) mkIf mkMerge;
|
||||
inherit (lib.meta) getExe;
|
||||
inherit (lib.types) bool enum listOf;
|
||||
inherit (lib.types) enum listOf;
|
||||
inherit (lib.nvim.types) mkGrammarOption deprecatedSingleOrListOf;
|
||||
inherit (lib.nvim.attrsets) mapListToAttrs;
|
||||
|
||||
|
|
@ -57,16 +57,12 @@ in {
|
|||
servers = mkOption {
|
||||
type = listOf (enum (attrNames servers));
|
||||
default = defaultServers;
|
||||
description = "Terraform LSP server to use (one or more of [${concatStringsSep " " (attrNames servers)}])";
|
||||
description = "Terraform LSP server to use";
|
||||
};
|
||||
};
|
||||
|
||||
format = {
|
||||
enable = mkOption {
|
||||
type = bool;
|
||||
default = config.vim.languages.enableFormat;
|
||||
description = "Enable Terraform formatting";
|
||||
};
|
||||
enable = mkEnableOption "Enable Terraform formatting" // {default = config.vim.languages.enableFormat;};
|
||||
type = mkOption {
|
||||
type = deprecatedSingleOrListOf "vim.language.terraform.format.type" (enum (attrNames formats));
|
||||
default = defaultFormat;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue