diff --git a/modules/neoformat.nix b/modules/neoformat.nix index d38a5d6..b18b198 100644 --- a/modules/neoformat.nix +++ b/modules/neoformat.nix @@ -11,14 +11,16 @@ }: let inherit (builtins) concatLists attrValues mapAttrs; in +let + baseConfigs = { + neoformat_try_node_exe = 1; + neoformat_only_msg_on_error = 1; + }; +in + { neoformat = concatLists [ - [ - (vim.g "neoformat_try_node_exe" 1) - (vim.g "neoformat_only_msg_on_error" 1) - ] - - (attrValues (mapAttrs vim.g configs)) + (attrValues (mapAttrs vim.g (baseConfigs // configs))) [ (vim.cmd' ''