From 935ecea67d59f2af9d9f56d18a8f0dc12fb18cfd Mon Sep 17 00:00:00 2001 From: Thiago Kenji Okada Date: Mon, 13 Jun 2022 18:57:41 +0100 Subject: [PATCH] neovim: add missing literalExpression in module docs (#3012) --- modules/programs/neovim.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/programs/neovim.nix b/modules/programs/neovim.nix index 91d573405..c4469b558 100644 --- a/modules/programs/neovim.nix +++ b/modules/programs/neovim.nix @@ -161,7 +161,7 @@ in { extraPython3Packages = mkOption { type = with types; either extraPython3PackageType (listOf package); default = (_: [ ]); - defaultText = "ps: []"; + defaultText = literalExpression "ps: [ ]"; example = literalExpression "(ps: with ps; [ python-language-server ])"; description = '' A function in python.withPackages format, which returns a @@ -172,7 +172,7 @@ in { extraLuaPackages = mkOption { type = with types; either extraLua51PackageType (listOf package); default = [ ]; - defaultText = "[]"; + defaultText = literalExpression "[ ]"; example = literalExpression "(ps: with ps; [ luautf8 ])"; description = '' A function in lua5_1.withPackages format, which returns a @@ -273,7 +273,7 @@ in { extraPackages = mkOption { type = with types; listOf package; default = [ ]; - example = "[ pkgs.shfmt ]"; + example = literalExpression "[ pkgs.shfmt ]"; description = "Extra packages available to nvim."; };