Compare commits

...

6 commits

Author SHA1 Message Date
raf
e02b61dc4c
Merge branch 'main' into add-supermaven 2025-07-10 01:10:39 +03:00
Devin Droddy
0bd9f1f0ec
assistant/supermaven-nvim: import improvement 2025-07-09 17:36:11 -04:00
Soliprem
9aa9088564
Merge pull request #972 from lackac/which-key-deregister
Some checks are pending
Set up binary cache / cachix (default) (push) Waiting to run
Set up binary cache / cachix (maximal) (push) Waiting to run
Set up binary cache / cachix (nix) (push) Waiting to run
Treewide Checks / Validate flake (push) Waiting to run
Treewide Checks / Check formatting (push) Waiting to run
Treewide Checks / Check source tree for typos (push) Waiting to run
Treewide Checks / Validate documentation builds (push) Waiting to run
Treewide Checks / Validate hyperlinks in documentation sources (push) Waiting to run
Treewide Checks / Validate Editorconfig conformance (push) Waiting to run
Build and deploy documentation / Check latest commit (push) Waiting to run
Build and deploy documentation / publish (push) Blocked by required conditions
binds/which-key: allow deregistering binds or groups
2025-07-09 17:30:18 +02:00
Laszlo Bacsi
311f6abcd2
style: fix release-notes conformance to editorconfing 2025-07-09 13:45:24 +02:00
László Bácsi
6b8072445c
Merge branch 'main' into which-key-deregister 2025-07-08 21:30:02 +02:00
Laszlo Bacsi
f728834aa3
binds/which-key: allow deregistering binds or groups 2025-06-26 15:25:57 +02:00
3 changed files with 6 additions and 2 deletions

View file

@ -445,9 +445,12 @@
- Restore vim-dirtytalk plugin and fix ordering with spellcheck in generated config. - Restore vim-dirtytalk plugin and fix ordering with spellcheck in generated config.
- Fix lualine separator options - Fix lualine separator options
- Add [neogit], an interactive and powerful Git interface for Neovim, inspired by Magit - Add [neogit], an interactive and powerful Git interface for Neovim, inspired by Magit
- Allow deregistering which-key binds or groups by setting them to `null`
[justDeeevin](https://github.com/justDeeevin): [justDeeevin](https://github.com/justDeeevin):
[supermaven-nvim]: https://github.com/supermaven-inc/supermaven-nvim [supermaven-nvim]: https://github.com/supermaven-inc/supermaven-nvim
- Add [supermaven-nvim] plugin in `vim.assistant.supermaven-nvim` with `enable` and - Add [supermaven-nvim] plugin in `vim.assistant.supermaven-nvim` with `enable` and
`setupOpts` `setupOpts`

View file

@ -9,11 +9,12 @@
enum enum
; ;
inherit (lib.options) mkOption mkEnableOption; inherit (lib.options) mkOption mkEnableOption;
inherit (lib.nvim.types) mkPluginSetupOption;
in { in {
options.vim.assistant.supermaven-nvim = { options.vim.assistant.supermaven-nvim = {
enable = mkEnableOption "Supermaven AI assistant"; enable = mkEnableOption "Supermaven AI assistant";
setupOpts = lib.nvim.mkPluginSetupOption "Supermaven" { setupOpts = mkPluginSetupOption "Supermaven" {
keymaps = { keymaps = {
accept_suggestion = mkOption { accept_suggestion = mkOption {
type = nullOr str; type = nullOr str;

View file

@ -10,7 +10,7 @@
inherit (lib.nvim.dag) entryAnywhere; inherit (lib.nvim.dag) entryAnywhere;
cfg = config.vim.binds.whichKey; cfg = config.vim.binds.whichKey;
register = mapAttrsToList (n: v: mkLuaInline "{ '${n}', desc = '${v}' }") cfg.register; register = mapAttrsToList (n: v: lib.lists.optional (! isNull v) (mkLuaInline "{ '${n}', desc = '${v}' }")) cfg.register;
in { in {
config = mkIf cfg.enable { config = mkIf cfg.enable {
vim = { vim = {