From 366c2092a4dc6ad586cb09e979256a725de9fa93 Mon Sep 17 00:00:00 2001 From: Craige McWhirter Date: Tue, 20 Sep 2022 11:21:10 +1000 Subject: [PATCH] neovim: added haskell to treefmt --- profiles/neovim.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/profiles/neovim.nix b/profiles/neovim.nix index a5a66fa..089bb42 100644 --- a/profiles/neovim.nix +++ b/profiles/neovim.nix @@ -14,7 +14,7 @@ formatter-nvim # A format runner for neovim fugitive # Vim Git wrapper fzf-vim # Full path fuzzy file, buffer, mru, tag, finder for Vim - haskell-vim # Syntax Highlighting and Indentation for Haskell + #haskell-vim # Syntax Highlighting and Indentation for Haskell indentLine # Display thin vertical lines at each indentation level lualine-nvim YouCompleteMe # A code-completion engine for Vim @@ -193,6 +193,13 @@ set shiftwidth=2 set expandtab set textwidth=79 + "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 endfunction autocmd BufNewFile,BufFilePre,BufRead *.hs :call HaskellSettings() @@ -313,6 +320,7 @@ crystal = treefmt, cue = treefmt, go = treefmt, + haskell = treefmt, javascript = treefmt, lua = treefmt, mint = treefmt,