Skip to content

Commit

Permalink
omni: find last racket keyword for completion (dense-analysis#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 and mnikulin committed Nov 12, 2023
1 parent 3361a33 commit dad6c21
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 dad6c21

Please sign in to comment.