adding rustfmt to rustic
This commit is contained in:
		
							parent
							
								
									7333f9632d
								
							
						
					
					
						commit
						85e60200e7
					
				
					 2 changed files with 4 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -3557,7 +3557,8 @@ I'd like to start learning and using rust if I can.
 | 
			
		|||
  ;; comment to disable rustfmt on save
 | 
			
		||||
  (setq rustic-format-on-save t
 | 
			
		||||
        rustic-lsp-client 'eglot
 | 
			
		||||
        rustic-clippy-arguments "-- -W clippy::pedantic -W clippy::nursery -W clippy::unwrap_used")
 | 
			
		||||
        rustic-clippy-arguments "-- -W clippy::pedantic -W clippy::nursery -W clippy::unwrap_used"
 | 
			
		||||
        rustic-rustfmt-args '("--edition" "2021"))
 | 
			
		||||
  (advice-add 'eglot-completion-at-point :around #'cape-wrap-buster)
 | 
			
		||||
  (add-to-list 'compilation-error-regexp-alist rustic-compilation-error)
 | 
			
		||||
  (add-to-list 'compilation-error-regexp-alist rustic-compilation-warning)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										3
									
								
								init.el
									
										
									
									
									
								
							
							
						
						
									
										3
									
								
								init.el
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -2599,7 +2599,8 @@ targets."
 | 
			
		|||
  ;; comment to disable rustfmt on save
 | 
			
		||||
  (setq rustic-format-on-save t
 | 
			
		||||
        rustic-lsp-client 'eglot
 | 
			
		||||
        rustic-clippy-arguments "-- -W clippy::pedantic -W clippy::nursery -W clippy::unwrap_used")
 | 
			
		||||
        rustic-clippy-arguments "-- -W clippy::pedantic -W clippy::nursery -W clippy::unwrap_used"
 | 
			
		||||
        rustic-rustfmt-args '("--edition" "2021"))
 | 
			
		||||
  (advice-add 'eglot-completion-at-point :around #'cape-wrap-buster)
 | 
			
		||||
  (add-to-list 'compilation-error-regexp-alist rustic-compilation-error)
 | 
			
		||||
  (add-to-list 'compilation-error-regexp-alist rustic-compilation-warning)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue