From 9fe8808e7ec5e0ecd2bb4defb022f11ddfcdcafd Mon Sep 17 00:00:00 2001 From: Sanchayan Maity Date: Sat, 11 Jul 2020 12:42:49 +0530 Subject: [PATCH] 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 --- nvim/.config/nvim/after/ftplugin/haskell.vim | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/nvim/.config/nvim/after/ftplugin/haskell.vim b/nvim/.config/nvim/after/ftplugin/haskell.vim index 1c9da9f..5501a44 100644 --- a/nvim/.config/nvim/after/ftplugin/haskell.vim +++ b/nvim/.config/nvim/after/ftplugin/haskell.vim @@ -3,9 +3,8 @@ compiler stack setlocal makeprg=stack\ build -nmap t :AsyncDo stack exec -- hasktags -x -c . -nmap td :AsyncDo stack exec -- haskdogs -nmap h :AsyncDo stack exec -- hlint % +nmap t :AsyncDo hasktags -x -c . +nmap h :AsyncDo hlint % nmap g :Ghcid nmap k :GhcidKill nmap c :HoogleClose