From e93033fd6940d5ca87d0482192a350f687efc456 Mon Sep 17 00:00:00 2001 From: Dmytro Meleshko Date: Thu, 25 Mar 2021 01:41:24 +0200 Subject: [PATCH] [nvim] disable the custom folding algorithm for Haskell --- nvim/after/ftplugin/haskell.vim | 3 +++ nvim/after/syntax/cabal.vim | 2 ++ nvim/after/syntax/cabalconfig.vim | 2 ++ nvim/after/syntax/nginx.vim | 4 ++-- 4 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 nvim/after/ftplugin/haskell.vim create mode 100644 nvim/after/syntax/cabal.vim create mode 100644 nvim/after/syntax/cabalconfig.vim diff --git a/nvim/after/ftplugin/haskell.vim b/nvim/after/ftplugin/haskell.vim new file mode 100644 index 0000000..bdabaed --- /dev/null +++ b/nvim/after/ftplugin/haskell.vim @@ -0,0 +1,3 @@ +let g:haskall_test = 1 +setlocal foldmethod< +setlocal foldtext< diff --git a/nvim/after/syntax/cabal.vim b/nvim/after/syntax/cabal.vim new file mode 100644 index 0000000..8ced55f --- /dev/null +++ b/nvim/after/syntax/cabal.vim @@ -0,0 +1,2 @@ +setlocal foldmethod< +setlocal foldtext< diff --git a/nvim/after/syntax/cabalconfig.vim b/nvim/after/syntax/cabalconfig.vim new file mode 100644 index 0000000..8ced55f --- /dev/null +++ b/nvim/after/syntax/cabalconfig.vim @@ -0,0 +1,2 @@ +setlocal foldmethod< +setlocal foldtext< diff --git a/nvim/after/syntax/nginx.vim b/nvim/after/syntax/nginx.vim index fb06acc..1e4e3af 100644 --- a/nvim/after/syntax/nginx.vim +++ b/nvim/after/syntax/nginx.vim @@ -4,5 +4,5 @@ " sourced in `syntax/nginx.vim` in vim-polyglot, which resets the `commentstring` " set in `ftplugin/nginx.vim` and sets `comments` to some garbage. This script " undoes that damage. -let &l:comments = &g:comments -let &l:commentstring = '#%s' +setlocal comments< +setlocal commentstring=#%s