You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This plugin also should work with YouCompleteMe.
To enable auto-completions, you have to add the following setting.
letg:ycm_semantic_triggers= {'haskell' : ['.']}
Options
g:necoghc_enable_detailed_browse
Default: 0
Show detailed information (type) of symbols.
You can enable it by adding let g:necoghc_enable_detailed_browse = 1 in your vimrc.
While it is quite useful, it will take longer boot time.
This feature was introduced in ghc-mod 1.11.5.
g:necoghc_debug
Default: 0
Show error message if ghc-mod/hhpc command fails.
Usually it will be noisy if ghc-mod browse Your.Project.Module always
fails.
Use this flag only if you have some trouble.
g:necoghc_use_stack
Default: 0
Allow using stack's own ghc-mod/hhpc.
If you are using ghc-mod, it will change direct ghc-mod mod calls to stack exec --no-stack-exe ghc-mod -- instead. The same goes for hhpc.
Use this flag if your globally installed ghc-mod/hhpc doesn't work properly with your
stack projects.
Troubleshoot
Q: neco-ghc does not work
Check the $PATH variable in vim contains the path to your ghc-mod/hhpc command.
Or you can execute :NecoGhcDiagnostics command for debug.
Q: Completion isn't working for local functions or modules
It's a limitation of ghc-mod.
ghc-mod can show symbols of installed modules only.
ghc-mod cannot show symbols of developing modules or current source file.