-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a09d4e5
commit 900f9f4
Showing
1 changed file
with
60 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"; | ||
}; | ||
} | ||
]; | ||
} |