Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmp: update keymaps #91

Merged
merged 3 commits into from
Jun 18, 2024
Merged

cmp: update keymaps #91

merged 3 commits into from
Jun 18, 2024

Conversation

MikaelFangel
Copy link
Owner

Unfortunately the current keymaps interfere with your writing flow because copilot eagerly tries to complete a line even if it only contains whitespace. This makes it hard to write languages that are whitespace-sensitive e.g. Python and F#.

Changes

  • This updates the keycap for completion and makes it so autocompletion won't trigger on lines with only whitespace
  • Shadows completion text
Keymap Functionality
Tab Autocomplete if at least one non-whitespace is present
S-Tab Close completion menu
Up Select prev completion
Down Select next completion

CC @PhilipCramer @Greve2001 - For opinions and testing.

@MikaelFangel MikaelFangel enabled auto-merge (squash) June 18, 2024 09:17
@MikaelFangel MikaelFangel merged commit d699a65 into main Jun 18, 2024
3 checks passed
@MikaelFangel MikaelFangel deleted the cmp-improvements branch June 18, 2024 09:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant