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]
|
||||
|
||||
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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue