This commit is contained in:
baabelfish 2016-02-08 09:17:43 +02:00
commit 8a783c0d4b
2 changed files with 4 additions and 2 deletions

View file

@ -31,7 +31,9 @@ function! omni#nimsuggest(file, l, c)
let completions_raw = split(system(fullcmd), "\n")[4:-2]
for line in completions_raw
call add(completions, omni#item(util#ParseV2(line)))
if len(split(line, " ")) > 7
call add(completions, omni#item(util#ParseV2(line)))
endif
endfor
return completions

View file

@ -45,7 +45,7 @@ function! NimIndent()
return Up()
endif
if prevl =~ '^\(const\|var\|let\).*\s*if\s*.*$'
if prevl =~ '^\<\(const\|var\|let\)\>.*\s*if\s*.*$'
return Up()
endif