I see. I thought that because sh-mode--treesit-settings is executed after the local variable sh-shell is defined, it would always be equal to the detected/file shell type. I am still getting my head around scope in elisp.
I did the change and I think it is good to go, unless there is anything else to improve for now.
I hope to soon get time to work on imenu, navigation, and indentation for sh-mode & bash with tree-sitter.
Please find the corrected patch attached.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4