1
0
Fork 0

Install vim autoformater

This commit is contained in:
Malte Brandy 2019-08-01 01:37:32 +02:00
parent 7209bff1e9
commit 5d7194f569
No known key found for this signature in database
GPG key ID: 226A2D41EF5378C9
2 changed files with 10 additions and 3 deletions

View file

@ -1,5 +1,5 @@
neovim:
neovim.override {
n:
n.override {
vimAlias = true;
withPython3 = true;
configure = {
@ -8,7 +8,7 @@ neovim.override {
start = builtins.attrValues {
inherit ((import <nixpkgs> { }).vimPlugins)
vim-nix vimtex airline rust-vim fugitive vim-trailing-whitespace
vim-pandoc vim-pandoc-syntax haskell-vim;
vim-pandoc vim-pandoc-syntax haskell-vim vim-autoformat;
};
};
};

View file

@ -43,3 +43,10 @@ noremap <buffer> <silent> <Down> gj
noremap <buffer> <silent> <Home> g<Home>
noremap <buffer> <silent> <End> g<End>
let $NVIM_TUI_ENABLE_CURSOR_SHAPE=1
let g:formatdef_my_haskell = '"brittany"'
let g:formatters_hs = ['my_haskell']
let g:formatdef_my_nix = '"nixfmt"'
let g:formatters_nix = ['my_nix']
au BufWrite * :Autoformat