summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorD. Ben Knoble <ben.knoble+github@gmail.com>2022-09-08 03:57:43 -0400
committerGitHub <noreply@github.com>2022-09-08 16:57:43 +0900
commite99f262c2f2c75e686d0eae1b3749a546e6d7f00 (patch)
tree75510d3c3c5da6baea74a0148584d09c541308b7
parenta83a3659acd3c32c47cad85b7f996e178186732d (diff)
downloadale-e99f262c2f2c75e686d0eae1b3749a546e6d7f00.zip
omni: find last racket keyword for completion (#4293)
Otherwise it finds the first keyword, which is usually not relevant to the cursor position, and incorrectly calculates the completion position.
-rw-r--r--autoload/ale/completion.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/autoload/ale/completion.vim b/autoload/ale/completion.vim
index 3d649732..920c03cc 100644
--- a/autoload/ale/completion.vim
+++ b/autoload/ale/completion.vim
@@ -139,7 +139,7 @@ let s:should_complete_map = {
" Regular expressions for finding the start column to replace with completion.
let s:omni_start_map = {
\ '<default>': '\v[a-zA-Z$_][a-zA-Z$_0-9]*$',
-\ 'racket': '\k\+',
+\ 'racket': '\k\+$',
\}
" A map of exact characters for triggering LSP completions. Do not forget to