Commit Graph

14 Commits

Author SHA1 Message Date
e8cdcaebe9 feat(completion/siren): enable shift+tab keybinding in terminal 2023-05-09 00:57:16 +01:00
c3ccf4f51b feat(completion/copilot): major improvements to accept "mods" concept 2023-02-26 17:25:14 +00:00
76368c26eb feat(completion/copilot): add .kube/config to exclude list 2023-02-26 17:22:54 +00:00
41b18aa74c feat(completion/copilot): add accept completion "mods" concept
Essentially, if accepted completion string matches a given regexp
pattern, text can be inserted both before and after point.

This is useful in certain situations where Copilot suggests the opening
line to a if statement, for loop, etc., which leads to unbalanced curly
brackets. This can help reduce the annoyance of unbalanced brackets.
2023-02-22 00:04:16 +00:00
7792cfc965 feat(completion/copilot): improve curly-bracket handling at end of completion
Instead of stripping away curly brackets at the end of the completion
texts, simply insert a closing curly bracket after point when accepting
a completion that ends with a curly bracket.
2023-02-17 22:20:34 +00:00
bbbc9794ca feat(completion/copilot): do not use copilot-mode in .env* files 2023-01-20 20:59:59 +00:00
3b59f17a99 fix(completion/copilot): resolve startup error in Emacs 30.x
Use of the deprecated position function seems to raise a error in
Emacs 30.x. Hence use the newer cl-position function which replaced it.
2022-12-01 21:15:21 +00:00
fd1c57a96c fix(completion/copilot): custom accept fun ignoring trailing "{" chars
In languages that uses "{" for blocks, accepting a Copilot completion
that ends with "{", causing a structural imbalance, which
structural-based packages like smartparens does not like and causes
headaches.

With the custom accept function, trailing "{" chars along with any
whitespace before it, are ignored from Copilot completion. An exception
is made for if the removal of trailing "{" and whitespace yields an
empty completion, in which case the completion is accepted as is.
2022-09-26 14:33:35 +01:00
8bd1889926 chore(completion/copilot): update package straight definition
Just adds setup changes from latest readme of copilot.el.
2022-09-26 14:30:11 +01:00
2b55cf7bd9 feat(completion/copilot): add new and improve existing keybindings 2022-07-13 18:48:55 +01:00
262a661557 feat(language): stop using visual-line-mode in prog-mode derived modes
It makes more sense for text-mode derived modes.
2022-06-18 00:48:00 +01:00
7c2beb4cdf fix(completion/copilot): work around freezing issue caused by visual-line-mode 2022-05-11 22:04:22 +01:00
e14bfa37d8 fix(completion/copilot): improve copilot's interaction with company-mode
Previously we only hide company-mode's in-line preview when there was
only a single result. This meant that it didn't show the one result
anywhere.

This allows company-mode to still show it's regular popup even when
there's only one result.
2022-04-28 20:02:06 +01:00
44c4cc93c1 feat(completion): add support for GitHub Copilot via copilot.el
I opted for accepting copilot completions using C-<tab> /
<backtab> (shift+tab) instead of regular tab, as it was often getting in
the way of yasnippet and lsp completion suggestions. This allows a more
explicit acceptance of Copilot suggestions.
2022-04-28 12:08:11 +01:00