Add nix support
This commit is contained in:
		
							parent
							
								
									7e71c3e4c7
								
							
						
					
					
						commit
						7b6b253fc7
					
				
					 1 changed files with 5 additions and 0 deletions
				
			
		
							
								
								
									
										5
									
								
								init.el
									
										
									
									
									
								
							
							
						
						
									
										5
									
								
								init.el
									
										
									
									
									
								
							| 
						 | 
					@ -267,6 +267,11 @@
 | 
				
			||||||
(use-package lsp-treemacs
 | 
					(use-package lsp-treemacs
 | 
				
			||||||
  :after (lsp-mode treemacs))
 | 
					  :after (lsp-mode treemacs))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					;; Nix support
 | 
				
			||||||
 | 
					(use-package nix-mode
 | 
				
			||||||
 | 
					  :mode "\\.nix\\'"
 | 
				
			||||||
 | 
					  :hook (nix-mode . disable-tabs))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
(add-to-list 'auto-mode-alist '("\\.rs\\'" . rust-ts-mode))
 | 
					(add-to-list 'auto-mode-alist '("\\.rs\\'" . rust-ts-mode))
 | 
				
			||||||
(add-to-list 'auto-mode-alist '("\\.ts\\'" . typescript-ts-mode))
 | 
					(add-to-list 'auto-mode-alist '("\\.ts\\'" . typescript-ts-mode))
 | 
				
			||||||
(add-to-list 'auto-mode-alist '("\\.tsx\\'" . typescript-ts-mode))
 | 
					(add-to-list 'auto-mode-alist '("\\.tsx\\'" . typescript-ts-mode))
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue