From dad6c21f07cc839263601f387f49acc8e8f98633 Mon Sep 17 00:00:00 2001 From: "D. Ben Knoble" Date: Thu, 8 Sep 2022 03:57:43 -0400 Subject: [PATCH] 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. --- autoload/ale/completion.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/ale/completion.vim b/autoload/ale/completion.vim index 3d649732a4..920c03ccc8 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 = { \ '': '\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