Skip to content

Commit

Permalink
plugins/cord-nvim: init
Browse files Browse the repository at this point in the history
plugins/cord-nvim: fix formatting in test

plugins/cord-nvim: add myself to maintainers

plugins/cord-nvim: added luaName

Co-authored-by: Austin Horstman <[email protected]>

plugins/cord-nvim: added improvements to code

Co-authored-by: Austin Horstman <[email protected]>

plugins/cord-nvim: fix duplicates and formatting

plugins/cord-nvim: cleaned up code

Co-authored-by: Gaétan Lepage <[email protected]>

plugins/cord-nvim: fixed code and cleanup

Co-authored-by: Gaétan Lepage <[email protected]>
  • Loading branch information
Eveeifyeve and GaetanLepage committed Jan 7, 2025
1 parent e07a482 commit f583fcb
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 0 deletions.
30 changes: 30 additions & 0 deletions plugins/by-name/cord-nvim/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
lib,
...
}:
let
inherit (lib.nixvim) defaultNullOpts;
inherit (lib) types;
in
lib.nixvim.neovim-plugin.mkNeovimPlugin {
name = "cord-nvim";
packPathName = "cord.nvim";
moduleName = "cord";
package = "cord-nvim";
maintainers = [ lib.maintainers.eveeifyeve ];

settingsOptions = {
usercmds = defaultNullOpts.mkBool false ''
Enables user commands
'';

log_level = lib.nixvim.defaultNullOpts.mkLogLevel "error" ''
Log messages at or above this level.
'';
};

settingsExample = {
usercmds = false;
log_level = null;
};
}
32 changes: 32 additions & 0 deletions tests/test-sources/plugins/by-name/cord-nvim/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
empty = {
# don't run tests as they try to access the network.
test.runNvim = false;
plugins.cord-nvim.enable = true;
};

defaults = {
# don't run tests as they try to access the network.
test.runNvim = true;
plugins.cord-nvim = {
enable = true;

settings = {
usercmd = false;
log_level = null;
};
};
};

example = {
# don't run tests as they try to access the network.
test.runNvim = false;
plugins.cord-nvim = {
enable = true;

settings = {
usercmd = false;
};
};
};
}

0 comments on commit f583fcb

Please sign in to comment.