We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a803997 commit bcfa8e0Copy full SHA for bcfa8e0
autoload/vsnip.vim
@@ -166,6 +166,25 @@ function! vsnip#get_context() abort
166
return {}
167
endfunction
168
169
+"
170
+" vsnip#completefunc
171
172
+function! vsnip#completefunc(findstart, base) abort
173
+ if !a:findstart
174
+ if a:base ==# ''
175
+ return []
176
+ endif
177
+ return vsnip#get_complete_items(bufnr('%'))
178
179
+
180
+ let line = getline('.')
181
+ let start = col('.') - 2
182
+ while start >= 0 && line[start] =~# '\k'
183
+ let start -= 1
184
+ endwhile
185
+ return start + 1
186
+endfunction
187
188
"
189
" vsnip#get_complete_items
190
0 commit comments