Skip to content

Commit

Permalink
plugins/cord-nvim: added improvements to code
Browse files Browse the repository at this point in the history
Co-authored-by: Austin Horstman <[email protected]>

plugins/cord-nvim: fix duplicates and formatting
  • Loading branch information
Eveeifyeve committed Oct 11, 2024
1 parent d9d82e5 commit 1e28fd2
Showing 1 changed file with 6 additions and 17 deletions.
23 changes: 6 additions & 17 deletions plugins/by-name/cord-nvim/default.nix
Original file line number Diff line number Diff line change
@@ -1,33 +1,22 @@
{
lib,
helpers,
...
}:
with lib;
helpers.neovim-plugin.mkNeovimPlugin {
lib.nixvim.neovim-plugin.mkNeovimPlugin {
name = "cord-nvim";
originalName = "cord.nvim";
luaName = "cord";
package = "cord-nvim";
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 = {
Expand Down

0 comments on commit 1e28fd2

Please sign in to comment.