allow raw lua in blink-cmp keymap via lib.nixvim.mkRaw#4293
Conversation
|
|
||
| keymap = defaultNullOpts.mkNullableWithRaw' { | ||
| type = with types; either (attrsOf anything) (enum [ false ]); | ||
| type = with types; either (attrsOf (maybeRaw anything)) (enum [ false ]); |
There was a problem hiding this comment.
I don't understand why this is needed. Surely anything already covers raw lua?
There was a problem hiding this comment.
This is quit an embarrassing mistake 😅 in my search for a solution I definitely mixed a few things together that that i shouldnt have.
turns out the solution is to "just" use lib.nixvim.mkRaw.
I will remove this, but then there is really only the examples/documentation left, I wil let you decide if there is any worth in that.
But anyway, Thanks for taking the time to look at my mistakes.
There was a problem hiding this comment.
there is really only the examples/documentation left,
Improving documentation and examples is always valuable. In this case having better examples may have avoided your confusion.
When you rebase, could you use our path/scope-style commit messages? See git log -- plugins/by-name/blink-cmp for examples or CONTRIBUTING.md for docs.
There was a problem hiding this comment.
Saw this a bit too late, but I will do some light clean up and get back to you.
There was a problem hiding this comment.
Ive cleaned up my commit messages now 😉
83062ca to
160b2a1
Compare
Allows to define raw lua commands to the keymap section of blink-cmp.
as im quite new to coding in nix, im not sure I've used the best approach, please do fell free to come with constructive suggestions.
Note: personally needed this to add code completion through minuet