[Bug] doom-modeline-indent-alist + treesit modes
bug
### Thank you for the bug report
- [x] I am using the latest version of `doom-modeline` related packages.
- [x] I checked [FAQ](https://github.com/seagle0128/doom-modeline#faq).
- [ ] You may also try reproduce the issue using clean environment and minimal configurations with
the command `emacs -Q`.
### Bug description
doom-modeline-indent-info doesn't show correct information on ts-modes
I just notice that doom-modeline-indent-alist doesn't contain tree-sit modes
it just go for the default tab-width, for example python-mode vs python-ts-mode.
### Steps to reproduce
set a custom indent for python-ts-mode and open a file
### Expected behavior
show's indent correctly
### OS
MacOS
### Emacs Version
30 (gccemacs)
### Emacs Configurations
https://codeberg.org/Krisque/dotfiles/src/branch/main/config/emacs
### Error callstack
```emacs-lisp
```
### Anything else
I'm not sure if the right way to fix this is to add every ts-mode in [doom-modeline-indent-alist](https://github.com/seagle0128/doom-modeline/blob/be399f2577709841818e942fb11238b46dd886bd/doom-modeline-core.el#L389)
or change how it gets from major mode [here](https://github.com/seagle0128/doom-modeline/blob/be399f2577709841818e942fb11238b46dd886bd/doom-modeline-segments.el#L579)
because maybe the right way to do is to use something like python-base-mode
for now I'm doing this: ``(add-to-list 'doom-modeline-indent-alist '(python-ts-mode python-indent-offset))``
1 条评论