From ea5f229efd65ba565728a98e6e994a917fb3fd73 Mon Sep 17 00:00:00 2001 From: NotAShelf Date: Wed, 8 May 2024 00:31:23 +0300 Subject: [PATCH] languages/markdown: convert extra ft list to lua table --- modules/plugins/languages/markdown.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/plugins/languages/markdown.nix b/modules/plugins/languages/markdown.nix index 06ba66b..e016477 100644 --- a/modules/plugins/languages/markdown.nix +++ b/modules/plugins/languages/markdown.nix @@ -39,7 +39,7 @@ table.insert( ls_sources, null_ls.builtins.formatting.deno_fmt.with({ - filetypes = ${concatLists cfg.format.extraFiletypes ["markdown"]}, + filetypes = ${expToLua (concatLists [cfg.format.extraFiletypes ["markdown"]])}, command = "${cfg.format.package}/bin/deno", }) ) @@ -81,21 +81,21 @@ in { enable = mkEnableOption "Markdown formatting" // {default = config.vim.languages.enableFormat;}; type = mkOption { - description = "Markdown formatter to use"; type = enum (attrNames formats); default = defaultFormat; + description = "Markdown formatter to use"; }; package = mkOption { - description = "Markdown formatter package"; type = package; default = formats.${cfg.format.type}.package; + description = "Markdown formatter package"; }; extraFiletypes = mkOption { - description = "Extra filetypes to format with the Markdown formatter"; type = listOf str; default = []; + description = "Extra filetypes to format with the Markdown formatter"; }; }; };