aboutsummaryrefslogtreecommitdiff
path: root/haskell.vim
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2022-07-22 08:51:20 +0100
committerJuan J. Martinez <jjm@usebox.net>2022-07-22 08:51:20 +0100
commita3a82e146799bf6810ff5e09aa8518accfd2b81d (patch)
tree1c7cf29d3a3d3e04fbcd75c0995371140863247f /haskell.vim
parentd5f07cc4a55e29626bbbda8bc9153f78cd34de5a (diff)
downloaddotnvim-a3a82e146799bf6810ff5e09aa8518accfd2b81d.tar.gz
dotnvim-a3a82e146799bf6810ff5e09aa8518accfd2b81d.zip
Back to haskell, see how it goes
Autoformat may or may not be a good idea.
Diffstat (limited to 'haskell.vim')
-rw-r--r--haskell.vim5
1 files changed, 5 insertions, 0 deletions
diff --git a/haskell.vim b/haskell.vim
new file mode 100644
index 0000000..b61a36e
--- /dev/null
+++ b/haskell.vim
@@ -0,0 +1,5 @@
+" haskell LSP settings
+"
+autocmd FileType haskell setlocal omnifunc=v:lua.vim.lsp.omnifunc
+autocmd BufWritePre *.hs :lua vim.lsp.buf.formatting_seq_sync()
+