Autoformatting of nix files
This commit is contained in:
parent
976b6b670d
commit
db74835acf
12 changed files with 354 additions and 350 deletions
|
@ -3,6 +3,8 @@ let g:bufferline_echo = 0
|
|||
let g:airline_powerline_fonts = 1
|
||||
let g:airline#extensions#tabline#enabled = 1
|
||||
|
||||
au BufWrite * :Autoformat
|
||||
|
||||
" plugins: rust
|
||||
let g:rustfmt_autosave = 1
|
||||
|
||||
|
|
|
@ -50,4 +50,3 @@ augroup END
|
|||
" vimdiff
|
||||
set diffopt+=iwhite
|
||||
set diffexpr=""
|
||||
|
||||
|
|
|
@ -28,43 +28,13 @@ in
|
|||
];
|
||||
imports = [
|
||||
./programs/zsh.nix
|
||||
./programs/vim.nix
|
||||
./programs/alacritty.nix
|
||||
];
|
||||
|
||||
programs = {
|
||||
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;
|
||||
tmux = {
|
||||
enable = true;
|
||||
|
|
33
nixos/programs/vim.nix
Normal file
33
nixos/programs/vim.nix
Normal 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"
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue