diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2022-02-17 04:31:35 +0100 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2022-02-17 04:31:45 +0100 |
commit | b77c5f11070ecb2ff343aa18b4ea859e6168f16c (patch) | |
tree | c93d347b096ce19556f369428913b697e6aafa00 /autoload/unison.vim | |
parent | 2c5af8f89d3e61e04e761c07a1f043b0f35203c6 (diff) | |
download | vim-polyglot-b77c5f11070ecb2ff343aa18b4ea859e6168f16c.tar.gz vim-polyglot-b77c5f11070ecb2ff343aa18b4ea859e6168f16c.zip |
Update
Diffstat (limited to 'autoload/unison.vim')
-rw-r--r-- | autoload/unison.vim | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/autoload/unison.vim b/autoload/unison.vim index cdc2efe5..e91699f0 100644 --- a/autoload/unison.vim +++ b/autoload/unison.vim @@ -56,7 +56,17 @@ function! unison#Complete(findstart, base) abort " locate the start of the word let line = getline('.') let start = col('.') - 1 - while start > 0 && line[start - 1] !~ '\s' && line[start - 1] != '(' && line[start - 1] != ')' + " Examples of where we want to count the start of a word: + " + " foo List.fold<cursor> + " ^ + " + " {Abor<cursor> + " ^ + " + " (List.fol<cursor> + " ^ + while start > 0 && line[start - 1] !~ '\v\s|[(){}\[\]]' let start -= 1 endwhile return start |