From dd085989b1bad93fb90a409cc3d9b4071c19f953 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Philippe=20H=C3=BCrlimann?=
Date: Thu, 3 Nov 2016 22:10:13 +0100
Subject: [PATCH] some more Haskell settings
---
ftplugin/haskell.vim | 13 ++++++++++++-
1 file changed, 12 insertions(+), 1 deletion(-)
diff --git a/ftplugin/haskell.vim b/ftplugin/haskell.vim
index e54465f..f6c7099 100644
--- a/ftplugin/haskell.vim
+++ b/ftplugin/haskell.vim
@@ -1,5 +1,16 @@
+set tabstop=8 "A tab is 8 spaces
+set expandtab "Always uses spaces instead of tabs
+set softtabstop=4 "Insert 4 spaces when tab is pressed
+set shiftwidth=4 "An indent is 4 spaces
+set shiftround "Round indent to nearest shiftwidth multiple
+
setlocal omnifunc=necoghc#omnifunc
-autocmd BufWritePost *.hs GhcModCheckAndLintAsync
+let g:necoghc_enable_detailed_browse = 1
+
+autocmd BufWritePost *.hs GhcModCheckAsync
nnoremap