215 Commits

Author SHA1 Message Date
mattn
17b654a87a fix neovim path (#299)
Fixes GitHub workflows
2025-10-18 20:47:49 +09:00
mattn
87eb253ce8 add b:asyncomplete_refresh_always (#298) 2025-10-18 17:42:27 +09:00
renovate[bot]
016590d2ca Update actions/checkout action to v4 (#295)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-10-19 21:05:54 -07:00
renovate[bot]
b3fbac1930 Update actions/checkout action to v3 (#288)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-04-10 20:15:37 -07:00
renovate[bot]
ed6bbf532e Add renovate.json (#287)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-04-10 20:13:19 -07:00
Isopod
9c7651894c Add note about <c-space> vs. <c-@> to Readme (#267)
Vim 8 can't interpret <c-space> in the terminal properly, instead you
have to write <c-@>.

Closes #266
2021-12-06 12:53:41 -08:00
David Briscoe
73ac8e4e45 Prevent 'Not allowed to change text here' (#259)
Don't call complete() if startcol would be invalid.

I see a lot of preprocess_complete with `start_col=0` but I see some
without, so I guess those are the firings with valid data.

Not entirely sure what causes this, but it occurs often when doing
completion with omnisharp. I often get this error while typing or
triggering completion. I'd rather nothing happen than error spam, so
silence it.

Example callstack caused from explicit triggering of completion:
    OmniSharp#Complete[10]
    OmniSharp#actions#complete#Get[13]
    <SNR>281_recompute_pum[44]
    <SNR>281_default_preprocessor[34]
    asyncomplete#preprocess_complete[16]
    E578: Not allowed to change text here
2021-08-19 15:43:40 -07:00
Prabir Shrestha
6c653c3f8f default to 0 min chars (#256) 2021-05-04 01:02:03 -07:00
David Briscoe
aa5ceb02d4 Prevent errors from undefined s:previous_context (#251)
Prevent errors processing textchanged that don't come from insert mode.

When using asyncomplete with vim-ripple, I get these errors:

    Error detected while processing TextChangedI Autocommands for "*"..function <SNR>43_on_text_changed_i[1]..<SNR>43_maybe_notify_on_change:
    line   15:
    E121: Undefined variable: s:previous_context

    Error detected while processing InsertLeave Autocommands for "*"..function <SNR>43_on_insert_leave:
    line    1:
    E108: No such variable: "s:previous_context"

ripple uses :startinsert, but I can't replicate the error with just that
command. Not sure what's wrong, but this seems like a reasonable fix.

Plugins
=======
    asyncomplete
    ripple

Repro
=====
Hit CR when on a blank line:
    gvim +"RippleCreate lua"
    down arrow
    CR
2021-05-04 00:31:43 -07:00
Jay Sitter
dffee28005 Obey g:asyncomplete_min_chars (#254) 2021-04-29 16:31:13 -07:00
Donnie West
8e018dee9c Switch to supported vlime repo (#250) 2021-03-02 19:22:14 -08:00
Spenser Truex
f7f017e242 Add vlime (#248)
* typo

* Add asyncomplete-vlime for common Lisp

This seems to be the standard, it even has a mention in the Vlime `:help` documentation.
2021-02-26 23:21:20 -08:00
Jagua
4be3c16b33 Fix error: "E118: Too many arguments for function: copy" (#249)
```text
Error detected while processing function <SNR>244_recompute_pum[44]..<SNR>244_default_preprocessor[18]..<SNR>244_strip_pair_characters:
line    7:
E118: Too many arguments for function: copy
```
2021-01-28 15:35:00 +00:00
Prabir Shrestha
e546095e4a add support for fuzzy matching (#246) 2020-12-22 23:28:06 -08:00
mattn
c5f5808581 Check b:asyncomplete_active_sources exists (#244) 2020-11-27 23:31:51 +09:00
mattn
4fba3b64fa Check b:asyncomplete_active_sources exists (#243) 2020-11-27 23:26:14 +09:00
mattn
87fdbf6414 Check b:asyncomplete_triggers exists (#242) 2020-11-27 23:17:22 +09:00
hhaoao
0b81a60fad Improve the server exit experience due to other crashes. (#241) 2020-11-27 02:32:42 +00:00
mattn
ed75b1c92f Fix vint errors (#238) 2020-11-04 16:35:10 +09:00
mattn
2107094f83 Fix custom filter (#235) 2020-10-22 08:44:04 +09:00
Prabir Shrestha
8f9646a19f add github workflows for ci (#234)
* add github workflows for chi
* add .themisrc
* add empty vimspec

* add .vintrc.yaml
2020-10-18 05:15:32 +00:00
Prabir Shrestha
69e608be9e add stale.yml (#233) 2020-10-17 11:20:46 -07:00
ii41
52a627924c Clear matches and enable closing popup menu (#230)
* Remove "skip popup" related logic

* Fix matches not getting cleared

Before this commit we don't clear the matches when the text
under the cursor is no longer suitable for completion. This
causes e.g. removing everything using <BS> does not close
the completion menu.

* Allow closing popup menu

Closing popup menu calls completion itself, making it
impossible to be successful.

We used to have a "skip popup" logic to fix this. It was
removed 2 commits ago for being too confusing.

To fix this a check is adapted to make sure that completion
is only called when the completion context has changed.
Since closing popup menu does not change the completion
context, it no longer calls completion, and therefore can
succeed.

Previously this check lets us not complete when we move to a
different line we are in insert mode, through for example
<CR> or <BS>, but actually we are not afraid of this. When
we enter a newline, we don't complete anyway since the
refresh pattern is not matched, and when we backspace to a
previous line, and the line happens to end with something
that will trigger a completion, why do we not want to
trigger it?

* Also compare completion base to determine context change

It is possible that in some situation changing the text under the
cursor does not change the position of the cursor, so we also
compare the completion base to determine whether the context has
changed.
2020-10-17 09:57:48 -07:00
Jacques Heunis
7d33e19395 Add suggested configuration for always-insert-newline-on-enter behaviour (#231)
Co-authored-by: Jacques Heunis <git@jacquesheunis.com>
2020-10-17 09:44:39 -07:00
Prabir Shrestha
e82ab2e849 Revert "Clear matches (#227)" (#229)
This reverts commit db26d431a8.
2020-10-11 18:48:32 -07:00
Prabir Shrestha
814007ddab fix #196 where b:asyncomplete_triggers may not exist (#228) 2020-10-11 18:38:35 -07:00
ii41
db26d431a8 Clear matches (#227)
* Remove "skip popup" related logic
* Fix matches not getting cleared

Before this commit we don't clear the matches when the text
under the cursor is no longer suitable for completion. This
causes e.g. removing everything using <BS> does not close
the completion menu.
2020-10-11 17:59:53 -07:00
mattn
b65efdced5 Support custom filter (#185) 2020-10-09 18:14:07 +09:00
Tomek Wałkuski
430ea6ddfd Fix typo: s/Closure/Clojure/ (#226) 2020-10-05 13:00:42 -07:00
Prabir Shrestha
8392aa9fab add ai powered tabnine source (#224) 2020-10-04 12:53:16 -07:00
Prabir Shrestha
3f9d907f21 add asyncomplete-gitcommit source (#223) 2020-10-04 12:12:15 -07:00
Prabir Shrestha
189fd9e474 add ale source (#222) 2020-10-04 12:08:58 -07:00
Prabir Shrestha
47d125049a add asyncomplete-look source for dictionary (#221) 2020-10-04 12:04:40 -07:00
Prabir Shrestha
123bec2a9a add asyncomplete-clang source (#220) 2020-10-04 12:02:09 -07:00
Prabir Shrestha
dbe098fc48 add nextword for English autocomplete (#219) 2020-10-04 11:56:43 -07:00
Prabir Shrestha
76e28e2d71 add async-clj-omni (#218) 2020-10-04 11:49:56 -07:00
mattn
20a279b079 Set <nomodeline> for doautocmd (#217) 2020-09-17 22:35:43 +09:00
Jay Sitter
0d4ec1805d Add asyncomplete-user to README (#207) 2020-08-08 18:30:12 -07:00
ForTheReallys
359abf8ebe Added documentation for asyncomplete_enable* variables (#208) 2020-08-08 18:28:54 -07:00
Prabir Shrestha
bb8a9924b7 use allowlist and blocklist and deprecate the old keys (#204) v2.1.0 2020-06-25 23:46:12 -07:00
Prabir Shrestha
b618d5753e remove async.vim reference 2020-06-20 23:24:13 +00:00
Prabir Shrestha
3f823a47a9 add asyncomplete-emmet.vim (#203) 2020-06-13 12:36:34 -07:00
mattn
75f25b059f Fix errors while editing with non-named buffer. (#201) 2020-05-18 15:15:30 +09:00
Matthieu Rakotojaona
fc5c227e2b Add instructions for displaying the preview window (#198) 2020-05-17 11:05:49 -07:00
Jay Sitter
91ac1f6e6f Add setting for minimum string length to trigger auto popup (#135)
* Add setting for minimum string length to trigger auto popup

* Use ternary

* Use simplified function

* Fix bug in new return function

* Add documentation for min_chars

* Add buffer override for min_chars
2020-05-10 09:15:27 -07:00
mattn
5713fa6a1e Trigger completion when the last commit character is trigger character (#186) 2020-02-26 14:38:53 +09:00
David Briscoe
1f8d8ed26a Only warn about missing timers functionality once (#181)
plugin/asyncomplete.vim sets up an autocmd to invoke
asyncomplete#enable_for_buffer() for every BufEnter. If we don't clear
this autocmd, then it will try to call that function, which will try to
source the autoload file, which outputs the error again.

Clearing that autocmd group stops the cycle and limits the number of
warnings to one.
2020-02-24 19:58:56 -08:00
mattn
312861e9f9 Remove paired suffixes (#183)
* Remove paired suffixes

* Fix indentations

* This hack should work for double-quote or single-quote.
2020-02-19 15:18:01 +09:00
mattn
c3b7078fd4 Fix vint error (#182) 2020-02-15 12:23:01 -08:00
mattn
52f857a4c4 Add b:asyncomplete_refresh_pattern (#179) 2020-02-04 19:49:05 -08:00