Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

plugins/cord-nvim: init #2408

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
plugins/cord-nvim: init
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]>
Eveeifyeve and GaetanLepage committed Jan 7, 2025
commit f583fcb676ba2de4510cfe84f2857abb9c6a785b
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;
};
};
};
}