Compare commits

...

2 Commits

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