From 4ed2ab288ee1c14df3de662a5ce11ac122f27b32 Mon Sep 17 00:00:00 2001 From: Marcel Schneider Date: Tue, 18 Apr 2017 16:39:46 +0200 Subject: [PATCH] Add haskell prettify --- vim/ftplugin/haskell.vim | 3 +++ vimrc.symlink | 1 + 2 files changed, 4 insertions(+) diff --git a/vim/ftplugin/haskell.vim b/vim/ftplugin/haskell.vim index 109cd5b..4c4a4d7 100644 --- a/vim/ftplugin/haskell.vim +++ b/vim/ftplugin/haskell.vim @@ -4,3 +4,6 @@ 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 + +" prettify +set formatprg=stylish-haskell diff --git a/vimrc.symlink b/vimrc.symlink index 17b6273..ca2f331 100644 --- a/vimrc.symlink +++ b/vimrc.symlink @@ -72,6 +72,7 @@ Plug 'cespare/vim-toml', { 'for': 'toml' } " Haskell Plug 'bitc/vim-hdevtools', { 'for': 'haskell' } +Plug 'nbouscal/vim-stylish-haskell', { 'for': 'haskell' } set wildignore+=node_modules