mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-18 02:05:56 +08:00
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:
@@ -139,7 +139,7 @@ let s:should_complete_map = {
|
|||||||
" Regular expressions for finding the start column to replace with completion.
|
" Regular expressions for finding the start column to replace with completion.
|
||||||
let s:omni_start_map = {
|
let s:omni_start_map = {
|
||||||
\ '<default>': '\v[a-zA-Z$_][a-zA-Z$_0-9]*$',
|
\ '<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
|
" A map of exact characters for triggering LSP completions. Do not forget to
|
||||||
|
|||||||
Reference in New Issue
Block a user