Misc
This commit is contained in:
parent
be3bfe6e8d
commit
8a783c0d4b
2 changed files with 4 additions and 2 deletions
|
|
@ -31,7 +31,9 @@ function! omni#nimsuggest(file, l, c)
|
||||||
let completions_raw = split(system(fullcmd), "\n")[4:-2]
|
let completions_raw = split(system(fullcmd), "\n")[4:-2]
|
||||||
|
|
||||||
for line in completions_raw
|
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
|
endfor
|
||||||
|
|
||||||
return completions
|
return completions
|
||||||
|
|
|
||||||
|
|
@ -45,7 +45,7 @@ function! NimIndent()
|
||||||
return Up()
|
return Up()
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if prevl =~ '^\(const\|var\|let\).*\s*if\s*.*$'
|
if prevl =~ '^\<\(const\|var\|let\)\>.*\s*if\s*.*$'
|
||||||
return Up()
|
return Up()
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue