nvim: ftplugin: haskell: Assume hasktags & hlint are available in path

We assume these are installed via nix and available globally. hasktags
and haskdogs do not build with stack on ghc8.8 and hence this switch.
With nix, haskdogs gives an issue due to locale like is also observed
when stack is installed via nix. codex does not seem to generate tags
which work.

Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com>
This commit is contained in:
Sanchayan Maity 2020-07-11 12:42:49 +05:30
parent 6acaf6ad4b
commit 9fe8808e7e

View file

@ -3,9 +3,8 @@
compiler stack compiler stack
setlocal makeprg=stack\ build setlocal makeprg=stack\ build
nmap <buffer> <LocalLeader>t :AsyncDo stack exec -- hasktags -x -c .<CR> nmap <buffer> <LocalLeader>t :AsyncDo hasktags -x -c .<CR>
nmap <buffer> <LocalLeader>td :AsyncDo stack exec -- haskdogs<CR> nmap <buffer> <LocalLeader>h :AsyncDo hlint %<CR>
nmap <buffer> <LocalLeader>h :AsyncDo stack exec -- hlint %<CR>
nmap <buffer> <LocalLeader>g :Ghcid<CR> nmap <buffer> <LocalLeader>g :Ghcid<CR>
nmap <buffer> <LocalLeader>k :GhcidKill<CR> nmap <buffer> <LocalLeader>k :GhcidKill<CR>
nmap <buffer> <LocalLeader>c :HoogleClose<CR> nmap <buffer> <LocalLeader>c :HoogleClose<CR>