Skip to content

Commit

Permalink
neoconf: init
Browse files Browse the repository at this point in the history
  • Loading branch information
khaneliman committed Jan 22, 2025
1 parent a09d4e5 commit 900f9f4
Showing 1 changed file with 60 additions and 0 deletions.
60 changes: 60 additions & 0 deletions modules/nixvim/plugins/neoconf/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
{ config, lib, ... }:
{
plugins = {
neoconf = {
enable = true;
};

which-key.settings.spec = lib.optionals config.plugins.neoconf.enable [
{
__unkeyed-1 = "<leader>N";
mode = "n";
icon = "";
group = "Neoconf";
}
];
};

keymaps = lib.mkIf config.plugins.neoconf.enable [
{
mode = "n";
key = "<leader>Nc";
action = "<cmd>Neoconf<cr>";
options = {
desc = "Select Config";
};
}
{
mode = "n";
key = "<leader>Nl";
action = "<cmd>Neoconf local<cr>";
options = {
desc = "Configure Local Settings";
};
}
{
mode = "n";
key = "<leader>Ng";
action = "<cmd>Neoconf global<cr>";
options = {
desc = "Configure Global Settings";
};
}
{
mode = "n";
key = "<leader>Ns";
action = "<cmd>Neoconf show<cr>";
options = {
desc = "Show Configuration";
};
}
{
mode = "n";
key = "<leader>NL";
action = "<cmd>Neoconf lsp<cr>";
options = {
desc = "Show LSP Configuration";
};
}
];
}

0 comments on commit 900f9f4

Please sign in to comment.