Skip to content

Commit

Permalink
omni: find last racket keyword for completion (#4293)
Browse files Browse the repository at this point in the history
Otherwise it finds the first keyword, which is usually not relevant to the
cursor position, and incorrectly calculates the completion position.
  • Loading branch information
benknoble authored Sep 8, 2022
1 parent a83a365 commit e99f262
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autoload/ale/completion.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e99f262

Please sign in to comment.