From bbc2152b0c575854c9b48607b096b9dd69d58ecf Mon Sep 17 00:00:00 2001 From: Eveeifyeve <88671402+Eveeifyeve@users.noreply.github.com> Date: Sat, 12 Oct 2024 07:51:16 +1100 Subject: [PATCH] plugins/cord-nvim: added improvements to code Co-authored-by: Austin Horstman plugins/cord-nvim: fix duplicates and formatting --- plugins/by-name/cord-nvim/default.nix | 23 ++++++----------------- 1 file changed, 6 insertions(+), 17 deletions(-) diff --git a/plugins/by-name/cord-nvim/default.nix b/plugins/by-name/cord-nvim/default.nix index f07825d72c..8c60664768 100644 --- a/plugins/by-name/cord-nvim/default.nix +++ b/plugins/by-name/cord-nvim/default.nix @@ -1,10 +1,8 @@ { lib, - helpers, ... }: -with lib; -helpers.neovim-plugin.mkNeovimPlugin { +lib.nixvim.neovim-plugin.mkNeovimPlugin { name = "cord-nvim"; originalName = "cord.nvim"; luaName = "cord"; @@ -12,22 +10,13 @@ helpers.neovim-plugin.mkNeovimPlugin { maintainers = [ lib.maintainers.eveeifyeve ]; settingsOptions = { - usercmds = helpers.defaultNullOpts.mkBool false '' + usercmds = lib.nixvim.defaultNullOpts.mkBool false '' Enables user commands ''; - log_level = - helpers.defaultNullOpts.mkEnum - [ - "trace" - "debug" - "info" - "warn" - "off" - ] - null - '' - Log messages at or above this level. - ''; + + log_level = lib.nixvim.defaultNullOpts.mkLogLevel "error" '' + Log messages at or above this level. + ''; }; settingsExample = {