Add go-mode stuff

This commit is contained in:
Alexander Rosenberg 2024-03-08 19:54:16 -08:00
parent e4b80773e7
commit 1ffcdc6e50
Signed by: Zander671
GPG Key ID: 5FD0394ADBD72730

11
init.el
View File

@ -127,6 +127,7 @@
(yaml "https://github.com/ikatyang/tree-sitter-yaml")
(css "https://github.com/tree-sitter/tree-sitter-css")
(go "https://github.com/tree-sitter/tree-sitter-go")
(gomod "https://github.com/camdencheek/tree-sitter-go-mod")
(js "https://github.com/tree-sitter/tree-sitter-javascript")
(bash "https://github.com/tree-sitter/tree-sitter-bash")
(cmake "https://github.com/uyha/tree-sitter-cmake")
@ -765,6 +766,16 @@ COMMAND and COMINT are like `compile'."
:innermodes '(my/poly-php-innermode))
(add-to-list 'auto-mode-alist '("\\.php\\|\\.phtml\\'" . my/poly-web-mode)))
;; go mode
(use-package go-mode)
(use-package go-ts-mode
:ensure nil
:hook ((go-ts-mode . eglot-ensure)
(go-ts-mode . my/-setup-go-ts-mode))
:init
(defun my/-setup-go-ts-mode ()
(setq-local indent-line-function #'go-mode-indent-line)))
;; rust
(use-package rust-mode)
(use-package rust-ts-mode