Add cmake support to emacs.
This commit is contained in:
		
							parent
							
								
									1ebf31dc11
								
							
						
					
					
						commit
						7d94210d8f
					
				| @ -127,6 +127,8 @@ in | ||||
|                     final.nixfmt-rfc-style # auto-formatting nix files through nixd | ||||
|                     final.clang # To compile tree-sitter grammars | ||||
|                     final.shellcheck | ||||
|                     final.cmake-language-server | ||||
|                     final.cmake # Used by cmake-language-server | ||||
|                   ] | ||||
|                 } | ||||
|               ''; | ||||
|  | ||||
| @ -0,0 +1,18 @@ | ||||
| (require 'common-lsp) | ||||
| 
 | ||||
| (use-package cmake-mode | ||||
|   :commands cmake-mode | ||||
|   :hook ( | ||||
|          (cmake-mode . (lambda () | ||||
|                          (eglot-ensure) | ||||
|                          (defclass my/eglot-cmake (eglot-lsp-server) () | ||||
|                            :documentation | ||||
|                            "Own eglot server class.") | ||||
| 
 | ||||
|                          (add-to-list 'eglot-server-programs | ||||
|                                       '(cmake-mode . (my/eglot-cmake "cmake-language-server"))) | ||||
|                          )) | ||||
|          ) | ||||
|   ) | ||||
| 
 | ||||
| (provide 'lang-cmake) | ||||
| @ -38,4 +38,6 @@ | ||||
| 
 | ||||
| (require 'lang-nix) | ||||
| 
 | ||||
| (require 'lang-cmake) | ||||
| 
 | ||||
| (load-directory autoload-directory) | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Tom Alexander
						Tom Alexander