nvim: after/plugin/haskell: Cleanup settings not required anymore

We dropped the Haskell syntax plugin for treesitter and also ghcid.
Remove settings which were for those plugins.
This commit is contained in:
Sanchayan Maity 2021-09-11 11:54:10 +05:30
parent 3edfac79b4
commit 763f811931

View file

@ -5,8 +5,6 @@ setlocal makeprg=stack\ build
nnoremap <buffer> <LocalLeader>t :AsyncDo hasktags -x -c .<CR>
nnoremap <buffer> <LocalLeader>h :AsyncDo hlint %<CR>
nnoremap <buffer> <LocalLeader>g :Ghcid<CR>
nnoremap <buffer> <LocalLeader>k :GhcidKill<CR>
" Taken from https://github.com/danidiaz/miscellany/blob/master/linux/.vim/ftplugin/haskell/movements.vim
" Next top-level type signature
@ -34,30 +32,3 @@ nnoremap <script> <silent> [M gg/^\s*)\s*where\s*$<CR>zb<CR>
nnoremap <script> <silent> ]n /^-- \$\w\+<CR>z<CR>
" Previous named chunk of documentation
nnoremap <script> <silent> [n ?^-- \$\w\+<CR>z<CR>
let g:haskell_classic_highlighting = 1
let g:haskell_enable_quantification = 1 " to enable highlighting of `forall`
let g:haskell_enable_recursivedo = 1 " to enable highlighting of `mdo` and `rec`
let g:haskell_enable_arrowsyntax = 1 " to enable highlighting of `proc`
let g:haskell_enable_pattern_synonyms = 1 " to enable highlighting of `pattern`
let g:haskell_enable_typeroles = 1 " to enable highlighting of type roles
let g:haskell_enable_static_pointers = 1 " to enable highlighting of `static`
let g:haskell_backpack = 1 " to enable highlighting of backpack keywords
let g:haskell_indent_if = 3
let g:haskell_indent_case = 2
let g:haskell_indent_let = 4
let g:haskell_indent_where = 6
let g:haskell_indent_before_where = 2
let g:haskell_indent_after_bare_where = 2
let g:haskell_indent_do = 3
let g:haskell_indent_in = 1
let g:haskell_indent_guard = 2
let g:haskell_indent_case_alternative = 1
let g:cabal_indent_section = 2
" Either check empty($IN_NIX_SHELL) for nix specific or executable('ghcid')
if executable('ghcid')
let g:ghcid_command = 'ghcid'
else
let g:ghcid_command = 'stack exec -- ghcid'
endif