added neovim formatter pkgs
This commit is contained in:
		
							parent
							
								
									14c1b77f91
								
							
						
					
					
						commit
						5a8050ed2c
					
				@ -10,16 +10,12 @@
 | 
				
			|||||||
      VISUAL = "nvim";
 | 
					      VISUAL = "nvim";
 | 
				
			||||||
    };
 | 
					    };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    packages = with pkgs; [
 | 
					    packages = with pkgs; [ rizin sshfs nixfmt ];
 | 
				
			||||||
      rizin
 | 
					 | 
				
			||||||
      sshfs
 | 
					 | 
				
			||||||
      nixfmt
 | 
					 | 
				
			||||||
    ];
 | 
					 | 
				
			||||||
  };
 | 
					  };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  programs.neovim = {
 | 
					  programs.neovim = {
 | 
				
			||||||
    enable = true;
 | 
					    enable = true;
 | 
				
			||||||
 | 
					    extraPackages = with pkgs; [ nodePackages.prettier cmake-format clang-tools rustfmt ];
 | 
				
			||||||
    extraConfig = ''
 | 
					    extraConfig = ''
 | 
				
			||||||
      " syntax
 | 
					      " syntax
 | 
				
			||||||
      syntax enable
 | 
					      syntax enable
 | 
				
			||||||
@ -76,9 +72,14 @@
 | 
				
			|||||||
      set cindent cinkeys-=0#
 | 
					      set cindent cinkeys-=0#
 | 
				
			||||||
      set expandtab shiftwidth=2 tabstop=2 softtabstop=2
 | 
					      set expandtab shiftwidth=2 tabstop=2 softtabstop=2
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      set statusline+=%#warningmsg#
 | 
					      " Enable alignment
 | 
				
			||||||
      set statusline+=%{SyntasticStatuslineFlag()}
 | 
					      let g:neoformat_basic_format_align = 1
 | 
				
			||||||
      set statusline+=%*
 | 
					
 | 
				
			||||||
 | 
					      " Enable tab to spaces conversion
 | 
				
			||||||
 | 
					      let g:neoformat_basic_format_retab = 1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      " Enable trimmming of trailing whitespace
 | 
				
			||||||
 | 
					      let g:neoformat_basic_format_trim = 1
 | 
				
			||||||
    '';
 | 
					    '';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    viAlias = true;
 | 
					    viAlias = true;
 | 
				
			||||||
@ -95,9 +96,8 @@
 | 
				
			|||||||
      nerdtree
 | 
					      nerdtree
 | 
				
			||||||
      vim-easy-align
 | 
					      vim-easy-align
 | 
				
			||||||
      vim-fugitive
 | 
					      vim-fugitive
 | 
				
			||||||
      vim-yaml
 | 
					 | 
				
			||||||
      vim-autoformat
 | 
					 | 
				
			||||||
      vimtex
 | 
					      vimtex
 | 
				
			||||||
 | 
					      neoformat
 | 
				
			||||||
    ];
 | 
					    ];
 | 
				
			||||||
  };
 | 
					  };
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user