From 60b87c90fcf436840a81e820f41af8dd542d3367 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Fri, 25 Feb 2022 11:49:21 +0100 Subject: [PATCH] home: vim: configure 'null-ls' for 'haskell' --- home/vim/after/ftplugin/haskell.vim | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/home/vim/after/ftplugin/haskell.vim b/home/vim/after/ftplugin/haskell.vim index 978f346..776adbe 100644 --- a/home/vim/after/ftplugin/haskell.vim +++ b/home/vim/after/ftplugin/haskell.vim @@ -1,6 +1,14 @@ " Create the `b:undo_ftplugin` variable if it doesn't exist call ftplugined#check_undo_ft() +" Set-up LSP, linters, formatters +lua << EOF +local null_ls = require("null-ls") +null_ls.register({ + null_ls.builtins.formatting.brittany, +}) +EOF + " Use a small indentation value on Haskell files setlocal shiftwidth=2 let b:undo_ftplugin.='|setlocal shiftwidth<'