Autoformatting of nix files

This commit is contained in:
Cyryl Płotnicki 2019-07-07 12:08:00 +01:00
parent 976b6b670d
commit db74835acf
12 changed files with 354 additions and 350 deletions

View file

@ -3,6 +3,8 @@ let g:bufferline_echo = 0
let g:airline_powerline_fonts = 1 let g:airline_powerline_fonts = 1
let g:airline#extensions#tabline#enabled = 1 let g:airline#extensions#tabline#enabled = 1
au BufWrite * :Autoformat
" plugins: rust " plugins: rust
let g:rustfmt_autosave = 1 let g:rustfmt_autosave = 1

View file

@ -50,4 +50,3 @@ augroup END
" vimdiff " vimdiff
set diffopt+=iwhite set diffopt+=iwhite
set diffexpr="" set diffexpr=""

View file

@ -28,43 +28,13 @@ in
]; ];
imports = [ imports = [
./programs/zsh.nix ./programs/zsh.nix
./programs/vim.nix
./programs/alacritty.nix ./programs/alacritty.nix
]; ];
programs = { programs = {
home-manager.enable = true; home-manager.enable = true;
vim = {
enable = true;
extraConfig = builtins.readFile ~/dev/dotfiles/.vimrc.nixos;
plugins = [
"vim-gitgutter"
"vim-toml"
"vim-autoformat"
"editorconfig-vim"
"tabular"
"vim-colors-solarized"
"fzf-vim"
"ctrlp-vim"
"vim-nix"
"vim-startify"
"ack-vim"
"vim-markdown"
"rust-vim"
"nerdtree"
"vim-dispatch"
"deoplete-nvim"
"deoplete-go"
"vim-fugitive"
"vim-sensible"
"vim-surround"
"vim-airline"
"vim-airline-themes"
"vim-dirdiff"
"nerdtree-git-plugin"
];
};
fzf.enable = true; fzf.enable = true;
tmux = { tmux = {
enable = true; enable = true;

33
nixos/programs/vim.nix Normal file
View file

@ -0,0 +1,33 @@
{ config, pkgs, ... }:
{
programs.vim = {
enable = true;
extraConfig = builtins.readFile ~/dev/dotfiles/.vimrc.nixos;
plugins = [
"vim-gitgutter"
"vim-toml"
"vim-autoformat"
"editorconfig-vim"
"tabular"
"vim-colors-solarized"
"fzf-vim"
"ctrlp-vim"
"vim-nix"
"vim-startify"
"ack-vim"
"vim-markdown"
"rust-vim"
"nerdtree"
"vim-dispatch"
"deoplete-nvim"
"deoplete-go"
"vim-fugitive"
"vim-sensible"
"vim-surround"
"vim-airline"
"vim-airline-themes"
"vim-dirdiff"
"nerdtree-git-plugin"
];
};
}