~kaction/config

d1ede6ad37398586c3883643f55b75a122f71a0b — Dmitry Bogatov a month ago 3a2f7e1
neovim: use LSP for auto-formatting

Autoformat disagrees with LSP about formatting of haskell buffers, and since I
have no preference about how exactly buffers are re-formatted, I just use LSP
and call it a day.
1 files changed, 2 insertions(+), 1 deletions(-)

M universe/neovim/init.vim
M universe/neovim/init.vim => universe/neovim/init.vim +2 -1
@@ 92,7 92,8 @@ au BufNewFile,BufRead *.fasm setfiletype fasm
au BufNewFile,BufRead */mail/*/[0123456789]* setfiletype mail
au BufNewFile,BufRead syntax sync minlines=200 "slower but more correct highlighting
au BufWritePre * :silent !mkdir -p %:p:h
au BufWrite * :Autoformat
au BufWritePre *.nix :Autoformat
au BufWrite * :silent lua vim.lsp.buf.formatting()

imap <Tab> <Plug>snipMateNextOrTrigger
smap <Tab> <Plug>snipMateNextOrTrigger