Install vim autoformater
This commit is contained in:
parent
7209bff1e9
commit
5d7194f569
2 changed files with 10 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
||||||
neovim:
|
n:
|
||||||
neovim.override {
|
n.override {
|
||||||
vimAlias = true;
|
vimAlias = true;
|
||||||
withPython3 = true;
|
withPython3 = true;
|
||||||
configure = {
|
configure = {
|
||||||
|
@ -8,7 +8,7 @@ neovim.override {
|
||||||
start = builtins.attrValues {
|
start = builtins.attrValues {
|
||||||
inherit ((import <nixpkgs> { }).vimPlugins)
|
inherit ((import <nixpkgs> { }).vimPlugins)
|
||||||
vim-nix vimtex airline rust-vim fugitive vim-trailing-whitespace
|
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;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -43,3 +43,10 @@ noremap <buffer> <silent> <Down> gj
|
||||||
noremap <buffer> <silent> <Home> g<Home>
|
noremap <buffer> <silent> <Home> g<Home>
|
||||||
noremap <buffer> <silent> <End> g<End>
|
noremap <buffer> <silent> <End> g<End>
|
||||||
let $NVIM_TUI_ENABLE_CURSOR_SHAPE=1
|
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
|
||||||
|
|
Loading…
Reference in a new issue