Fix go line indent error
This commit is contained in:
parent
68b5afda96
commit
3c98222dfe
9
init.el
9
init.el
@ -769,14 +769,11 @@ COMMAND and COMINT are like `compile'."
|
||||
(add-to-list 'auto-mode-alist '("\\.php\\|\\.phtml\\'" . my/poly-web-mode)))
|
||||
|
||||
;; go mode
|
||||
(use-package go-mode)
|
||||
(use-package go-mode
|
||||
:defer nil)
|
||||
(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)))
|
||||
:hook (go-ts-mode . eglot-ensure))
|
||||
|
||||
;; rust
|
||||
(use-package rust-mode)
|
||||
|
Loading…
Reference in New Issue
Block a user