Merge: Better Vim autocomplete by scanning all imported modules
authorJean Privat <jean@pryen.org>
Wed, 4 Feb 2015 08:37:50 +0000 (15:37 +0700)
committerJean Privat <jean@pryen.org>
Wed, 4 Feb 2015 08:37:50 +0000 (15:37 +0700)
commit526e24b908558bc8e1f474e5f15237046627c30b
tree9c8181ccd814e0bd1364305ba6efc54ce46ee7ee
parent4b52524c59f04dfb2499f08f040394d6fcd9c699
parent4331042457d0da053b93e74a8028b9295c644933
Merge: Better Vim autocomplete by scanning all imported modules

The new Vim plugin uses `nitls` to locate all Nit modules relevant to the current directory. This is a nice way to support both complex projects and new incomplete modules.

The recommended usage is to update the list of modules when launching Vim and then do it manually afterwards. You may want to update it after adding an importation and saving the file. It could also be updated on each file save or loading but it gets pretty slow. Actually, the whole system may be too slow for older computers (sorry @R4PaSs) or those running inside a slow VM (sorry @BlackMinou and @MehdiAit).

A nice feature to have, would be to call `nitls` on the standard library when there's not local Nit source file or project. It occurs when creating the first Nit source file in an empty directory. @privat, what would be the best way to do that? Could we have `nitls -M standard`?

Pull-Request: #1134
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>
Reviewed-by: Jean Privat <jean@pryen.org>
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>