Open AlejandroSuero opened 3 weeks ago
Awesome! there's only one thing, when the suggestion is indented and you accept_line
it will only accept the indetation space but not the whole line.
Look at this video when the indentation is deep, you have to press accept_line
multiple times to actually accept the line.
Every time I press accept_line
it accepts one indentation level.
@pedro757 I made the changes so it gets the following line as a whole:
[!NOTE] If you insert a new line by yourself and needs indentation, it will have the same effect as in your video, for that line.
I am trying find a way that doesn't accept the whole suggestion as sometimes it gets the full suggestion in this case. It the same behaviour with
accept_word
andaccept_suggestion
. So this is following the current behaviour for the other keymaps.
LGTM, it feels much better now, thank you!
@pedro757 I leave here the videos for accept_word
and accept_suggestion
current behaviour with indentation.
accept_word
(default: <C-j>
):accept_suggestion
(default: <Tab>
):LGTM, it feels much better now, thank you!
Glad to hear 😁
With this PR
accept_line
keymap is introduced with<C-l>
as default becausel -> line
.Accepts the next suggested line by looking for end of line.
README.md
with the keymap changes.https://github.com/supermaven-inc/supermaven-nvim/assets/71392160/88efc25f-2626-4fed-a1dd-73d8b96f5e1d
Closes #48.