diff --git a/autoload/omni.vim b/autoload/omni.vim index a756aad..63e50d0 100644 --- a/autoload/omni.vim +++ b/autoload/omni.vim @@ -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 diff --git a/indent/nim.vim b/indent/nim.vim index e5c3057..eb8c1fe 100644 --- a/indent/nim.vim +++ b/indent/nim.vim @@ -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