Add go-mode stuff
This commit is contained in:
parent
e4b80773e7
commit
1ffcdc6e50
11
init.el
11
init.el
@ -127,6 +127,7 @@
|
|||||||
(yaml "https://github.com/ikatyang/tree-sitter-yaml")
|
(yaml "https://github.com/ikatyang/tree-sitter-yaml")
|
||||||
(css "https://github.com/tree-sitter/tree-sitter-css")
|
(css "https://github.com/tree-sitter/tree-sitter-css")
|
||||||
(go "https://github.com/tree-sitter/tree-sitter-go")
|
(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")
|
(js "https://github.com/tree-sitter/tree-sitter-javascript")
|
||||||
(bash "https://github.com/tree-sitter/tree-sitter-bash")
|
(bash "https://github.com/tree-sitter/tree-sitter-bash")
|
||||||
(cmake "https://github.com/uyha/tree-sitter-cmake")
|
(cmake "https://github.com/uyha/tree-sitter-cmake")
|
||||||
@ -765,6 +766,16 @@ COMMAND and COMINT are like `compile'."
|
|||||||
:innermodes '(my/poly-php-innermode))
|
:innermodes '(my/poly-php-innermode))
|
||||||
(add-to-list 'auto-mode-alist '("\\.php\\|\\.phtml\\'" . my/poly-web-mode)))
|
(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
|
;; rust
|
||||||
(use-package rust-mode)
|
(use-package rust-mode)
|
||||||
(use-package rust-ts-mode
|
(use-package rust-ts-mode
|
||||||
|
Loading…
Reference in New Issue
Block a user