nix-config/home/vim/after/ftplugin/haskell.vim

19 lines
512 B
VimL
Raw Normal View History

2021-02-23 16:08:46 +01:00
" 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
2021-02-23 16:08:46 +01:00
" Use a small indentation value on Haskell files
setlocal shiftwidth=2
let b:undo_ftplugin.='|setlocal shiftwidth<'
" Change max length of a line to 100 for this buffer to match official guidelines
setlocal colorcolumn=100
let b:undo_ftplugin.='|setlocal colorcolumn<'