misc/vim: always use the standard library for autocompletion
authorAlexis Laferrière <alexis.laf@xymus.net>
Wed, 4 Feb 2015 11:03:06 +0000 (06:03 -0500)
committerAlexis Laferrière <alexis.laf@xymus.net>
Fri, 6 Feb 2015 13:54:50 +0000 (08:54 -0500)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

misc/vim/plugin/nit.vim

index d5921e0..ea308a5 100644 (file)
@@ -52,8 +52,8 @@ function NitComplete()
                " prediction and some also require double-enter on end of line.
                let g:acp_behaviorKeywordIgnores = ['new', 'var', 'in', 'do', 'els', 'end', 'ret', 'for', 'fun']
 
-               " Use nitls to compute all interesting files from the current directory
-               for file in split(system('nitls -M', '\n'))
+               " Use nitls to compute all interesting files from the current directory and the standard library
+               for file in split(system('nitls -M standard .', '\n'))
                        silent let &complete = &complete . ',s' . file
                        silent set complete?
                endfor