]> git.eshelyaron.com Git - emacs.git/commit
Improve go-ts-mode Imenu, navigation and electric pair (bug#60407)
authorEvgeni Kolev <evgenysw@gmail.com>
Thu, 29 Dec 2022 15:49:40 +0000 (17:49 +0200)
committerYuan Fu <casouri@gmail.com>
Mon, 9 Jan 2023 04:32:51 +0000 (20:32 -0800)
commitdc911e4ba5ccfc99d66504b6e99c9abcf3e617f3
treeaf48bc543809c14bfb657a39161c1a519c5e145a
parent20f36c8f6f98478dd86ddfe93da2803de2518ea2
Improve go-ts-mode Imenu, navigation and electric pair (bug#60407)

The Imenu items are extended to support "Method", "Struct",
"Interface", "Alias" and "Type".

go-ts-mode is updated to use the Imenu facility added in commit
b39dc7ab27a696a8607ab859aeff3c71509231f5.

Variable electric-indent-chars is set in order to improve integration
with Electric Pair mode.

* lisp/progmodes/go-ts-mode.el (go-ts-mode--imenu-1) (go-ts-mode--imenu):
Remove functions.
(go-ts-mode--defun-name, go-ts-mode--interface-node-p)
(go-ts-mode--struct-node-p, go-ts-mode--other-type-node-p)
(go-ts-mode--alias-node-p): New functions.
(go-ts-mode): Improve Imenu settings, navigation, add Electric Pair
mode settings.
lisp/progmodes/go-ts-mode.el