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.
This commit is contained in:
D. Ben Knoble
2022-09-08 03:57:43 -04:00
committed by GitHub
parent a83a3659ac
commit e99f262c2f

View File

@@ -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