-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# neco-ghc issues | ||
|
||
When submitting an issue, please include the output by `:NecoGhcDiagnosis`. | ||
|
||
```vim | ||
NecoGhcDiagnosis | ||
``` | ||
|
||
It shows your environment information possibly related to neco-ghc. | ||
|
||
- Current filetype | ||
- neco-ghc only works in the buffer with filetype haskell. | ||
- ghc-mod executable (required) | ||
- neco-ghc requires [ghc-mod](https://github.com/kazu-yamamoto/ghc-mod) and it must be placed in your `$PATH`. | ||
- 'omnifunc' | ||
- To use Vim builtin completion, `'omnifunc'` must be set to `necoghc#omnifunc` by `setlocal omnifunc=necoghc#omnifunc`. | ||
- Completion plugin installation (optional) | ||
- [neocomplete.vim](https://github.com/Shougo/neocomplete.vim) | ||
- [neocomplcache.vim](https://github.com/Shougo/neocomplcache.vim) | ||
- [YouCompleteMe](https://github.com/Valloric/YouCompleteMe) | ||
- Other plugin installation (optional) | ||
- [vimproc.vim](https://github.com/Shougo/vimproc.vim) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
function! necoghc#diagnostics#report() | ||
echomsg 'Current filetype:' &l:filetype | ||
|
||
let l:executable = executable('ghc-mod') | ||
echomsg 'ghc-mod is executable:' l:executable | ||
if !l:executable | ||
echomsg ' Your $PATH:' $PATH | ||
endif | ||
|
||
echomsg 'omnifunc:' &l:omnifunc | ||
echomsg 'neocomplete.vim:' exists(':NeoCompleteEnable') | ||
echomsg 'neocomplcache.vim:' exists(':NeoComplCacheEnable') | ||
echomsg 'YouCompleteMe:' exists(':YcmDebugInfo') | ||
|
||
try | ||
echomsg 'vimproc.vim:' vimproc#version() | ||
catch /^Vim\%((\a\+)\)\=:E117/ | ||
echomsg 'vimproc.vim: not installed' | ||
endtry | ||
endfunction |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
command! -nargs=0 NecoGhcDiagnostics call necoghc#diagnostics#report() |