Commit graph

20343 commits

Author SHA1 Message Date
Henrik Lissner
75c3df7e87
bump: gptel-magit
ragnard/gptel-magit@f27c01821b -> ArthurHeymans/gptel-magit@4a40c3fc20

Move to ArthurHeymans/gptel-magit fork until ragnard/gptel-magit#7 is
merged.

Fix: #8484
Ref: ragnard/gptel-magit#7
2025-09-02 11:41:58 +02:00
Henrik Lissner
08bde91cef
fix(cc): treesit: use v0.23.6 c grammar on Emacs <=29
Newer versions of tree-sitter/tree-sitter-c fail to load on Emacs <=29.
2025-09-02 11:41:58 +02:00
Henrik Lissner
d01ff65299
fix(web): lsp init in {html,css}-ts-mode 2025-09-02 11:41:58 +02:00
Henrik Lissner
eb75f49c33
fix(php): void-variable +php--company-backends
Removed in 9e5e4cf, but was accidentally revived in d545fcc.

Amend: d545fccf47
Ref: 9e5e4cf78b
2025-09-02 11:41:57 +02:00
Henrik Lissner
b4b661ca20
fix(default): enable smartparens config for ts-modes
Fix: #8486
2025-09-02 11:41:49 +02:00
Henrik Lissner
75506f090f
fix(go): treesit: use v0.20.0 on Emacs <=29
Newer versions of tree-sitter/tree-sitter-go fail to load on Emacs <=29.
2025-09-02 11:41:06 +02:00
Henrik Lissner
79a9418cba
fix(tree-sitter): backport treesit-*-abi-version
So we don't have to litter these checks with feature/fboundp
checks (there will potentially be many of them).
2025-09-02 03:28:40 +02:00
Henrik Lissner
13e32dcbe9
fix(rust): treesit: use v0.23.2 on Emacs <=29
v0.24.0 errors out on <=29.

Fix: #8473
2025-09-02 03:28:40 +02:00
Henrik Lissner
2443148f6d
bump: :doom
radian-software/straight.el@8b3a54b247 -> radian-software/straight.el@25e0206541
2025-09-02 00:31:09 +02:00
Henrik Lissner
a9338d2a4a
docs(lsp): doctor: warn about +booster w/o +eglot 2025-09-02 00:31:09 +02:00
Henrik Lissner
2d28328b43
fix(cli): handle snapshot packages
Don't execute git commands in snapshots.

Amend: 8cdddd87d9
2025-09-02 00:31:08 +02:00
Henrik Lissner
09f104795d
release(modules): 25.10.0-dev
Ref: 2b39e41368
2025-09-01 22:01:54 +02:00
Henrik Lissner
076c03bf2e
fix(csharp): treesit: use v0.20.0 on Emacs <=29
v0.20+ doesn't work on Emacs 29, spewing node query errors, so we use
v0.20 there instead (and the latest stable on 30, and cutting edge on
31+ where :commit is recognized and has precedence over :rev).
2025-09-01 21:58:21 +02:00
Henrik Lissner
a91f93a33a
fix(cli): failure to repin packages installed from snapshots
When a pinned package is repinned, the package manager attempts to  `git
checkout` the new pin, which won't work if the package isn't a git
repo (see 8cdddd87).

Amend: 8cdddd87d9
2025-09-01 21:56:54 +02:00
Henrik Lissner
c664e1edef
fix(indent-guides): in org src blocks
This can break syntax highighting for some treesit-enabled major modes
in org src blocks.
2025-09-01 20:53:57 +02:00
Henrik Lissner
a51690f033
fix(:lang): add treesit-available-p checks to *-ts-mode packages
Otherwise package installation will throw Emacs version errors for users
on 28 and under.
2025-09-01 20:11:02 +02:00
Henrik Lissner
84e8ae58d1
refactor(:lang): remove fboundp checks for *-ts-modes
The major-mode-remap advice will handle undefined modes, so all these
extra checks aren't needed.
2025-09-01 20:11:02 +02:00
Henrik Lissner
71f137c6b0
fix(:lang): remove vestigial rainbow-delimiters-mode hooks
rainbow-delimiters was removed in 87b616e, but some of its activation
hooks were restored in 3b58741 and not removed when merged into
`master`.

Fix: #8483
Ref: 87b616e5d8
Amend: 3b58741522
2025-09-01 20:10:48 +02:00
Henrik Lissner
8760979fb5
fix(javascript): tsx-ts-mode config & lsp activation
Because the `tsx-ts-mode` major mode is housed in the
`typescript-ts-mode` package (there is no `tsx-ts-mode` package).

Fix: #8478
2025-09-01 17:51:05 +02:00
Henrik Lissner
bb18611177
fix(clojure): lsp activation in *-ts-modes
Fix: #8478
2025-09-01 17:49:32 +02:00
Henrik Lissner
1ecee25553
fix(zig): treesit: use maxxnino/tree-sitter-zig grammar
tree-sitter/zig-tree-sitter is written in zig, so cannot be
automatically installed (`treesit-install-language-grammar` expects
C-based grammars).

Amend: 9acc5f48b6
2025-09-01 17:40:32 +02:00
Paweł Świątkowski
03c07970d4
fix(erlang): malformed treesit grammar recipe
Missed `:url` caused an error during initialization.
2025-09-01 17:31:20 +02:00
Igor Zinovyev
45d3997379
fix(php): return composer keybinds to localleader 2025-09-01 17:30:27 +02:00
Henrik Lissner
8cf2e42e42
nit(php): fix indentation
Some pesky tabs snuck in.

Amend: d545fccf47
2025-09-01 15:33:43 +02:00
Henrik Lissner
b85124af56
fix(javascript): defer js-ts-mode config
`+javascript-common-config` isn't intended to run until after the
`js-ts-mode` package is loaded, not before.

Amend: bd0bee92cc
2025-09-01 15:33:29 +02:00
Henrik Lissner
c6f768c114
fix(javascript): missing grammar recipe for tsx-ts-mode
Close: #8476
Co-authored-by: SunskyXH <SunskyXH@users.noreply.github.com>
2025-09-01 14:35:29 +02:00
Henrik Lissner
5ce2a29bf7
fix(rust): unify under rustic-mode
My mistake: I'd overlooked that rustic-mode already provides treesit
support, so we don't need all this complexity, we can simply use
rustic-mode. This indirectly fixes the recent regressions around
localleader keybinds and LSP activation.

Fix: #8473
Amend: 086a0d30d0
2025-09-01 14:35:29 +02:00
Henrik Lissner
b2e4e8e27c
revert: persp-mode
Bad-ptr/persp-mode.el@82680795b3 -> Bad-ptr/persp-mode.el@40e9993a97

persp-mode introduced some breaking API changes in a recent refactoring,
which have caused issues that are difficult to opt out of, even by
repinning it to an older commit. Until persp-mode sorts things out, I
simply revert it back to a point before all the changes.

Revert: c64ca09ed2
Revert: 751ac6134b
Revert: 6d5e004b87
Amend: a1121acc94
Fix: #8455
Close: #8474
Ref: #8470
2025-09-01 14:33:53 +02:00
Henrik Lissner
a1c307b441
fix(lib): doom/reload: quote $EMACS
With af4cbc7, escaping and quoting in $EMACS is now respected by
bin/doom; so make use of it to fix issues with $EMACS paths/commands
that contain spaces.

Ref: af4cbc7791d2
Fix: #8475
Fix: #8403
2025-09-01 14:24:12 +02:00
Henrik Lissner
14a31db741
fix(cli): handle spaces & quoting in $EMACS
bin/doom couldn't handle spaces in $EMACS, but worse than that, they
couldn't be quoted or escaped. This commit addresses the latter.

Fix: #8475
Fix: #8403
2025-09-01 14:24:07 +02:00
Henrik Lissner
4abdf07507
docs(javascript): add/revise docstrings 2025-08-31 18:40:40 +02:00
Henrik Lissner
247b630cbd
refactor(javascript): remove vestigial tide/skewer functions
Amend: bd0bee92cc
2025-08-31 18:39:18 +02:00
Henrik Lissner
3e7a20f972
fix(:lang): project minor mode detection in ts-modes 2025-08-31 16:33:32 +02:00
Henrik Lissner
09c01e04e6
fix(javascript): vestigial npm-mode reference
npm-mode was removed in bd0bee9.

Amend: bd0bee92cc
2025-08-31 16:31:30 +02:00
Henrik Lissner
1dae2bf916
fix(tree-sitter): remap to ts-mode w/o base mode
If the base major mode doesn't exist, let's assume we want no
fallthrough for this major mode (in the event the grammar isn't ready)
and simply push forward anyway, even if a missing grammar results in a
broken state.

This will particularly affect major modes like `typescript-mode` (which
simply won't be installed if +tree-sitter is enabled) and
`go-{mod,work}-ts-mode` (for which no base major modes exist).

The difference (generally) between most base and ts-modes is
performance, not features, so "gracefully failing back to the base mode"
makes sense UX-wise, but `typescript-mode` notably inferior to
`typescript-ts-mode` (particularly in its TSX support). Beginners may
misidentify its shortcomings as bugs, so it's better to simply error out
early so the user can be made aware of the problem sooner and less
ambiguously.
2025-08-31 16:20:14 +02:00
Henrik Lissner
5cda3ed25a
merge: branch 'feature/treesit'
Fix: #7742
Fix: #7623
Fix: #7593
2025-08-31 14:55:37 +02:00
Henrik Lissner
571766e6ba
fix(qt): eglot support
Also refactor module out of autoload.el into config.el (now that it's
non-trivial).

Ref: doomemacs/community#24
2025-08-31 14:47:03 +02:00
Henrik Lissner
94a1fe64a8
fix(tree-sitter): suppress "Can't find grammar" warnings
In Emacs <=30, top-level `treesit-ready-p` calls in various *-ts-mode
packages (like lua-ts-mode or ruby-ts-mode) are commonplace, and they
throw up a warning popup if the grammar isn't available at load time.
This is intrusive. Instead, this forces it to log to *Messages* instead
before falling back to the normal major mode.

Fortunately, these top-level `treesit-ready-p` calls have been removed
in most *-ts-mode packages in 31+, but this still impacts users on <=30
or using third party *-ts-modes that haven't adapted.

However, this doesn't suppress the warning when opening a *-ts-mode.el
file (thanks to the byte-compiler).
2025-08-31 14:41:40 +02:00
Henrik Lissner
86b6ba81ac
fix(go): go-{mod,work}-ts-mode 2025-08-31 14:40:58 +02:00
Henrik Lissner
98f03062b6
fix(lib): major-mode-remap backport for Emacs <30 users
`major-mode-remap`, `major-mode-remap-alist`, and
`major-mode-remap-defaults` were not backported correctly for Emacs 29,
28, and 27 users.

Amend: da08aa2d7d
2025-08-31 14:40:31 +02:00
Henrik Lissner
d545fccf47
fix(:lang): missing grammar recipes
I removed the grammar recipes in 3b58741 to avoid redundancy with the
upstream recipes, but didn't realize that those upstream recipes weren't
added until Emacs 31, so users on 30 and older would get errors when
trying to install any missing grammars.

This also establishes a hard dependency between :lang (php +tree-sitter)
and :lang ({javascript,web} +tree-sitter).

Amend: 3b58741522
2025-08-31 14:39:38 +02:00
Henrik Lissner
d9fd5cb8f3
fix(tree-sitter): treesit-enabled-modes: sort arity in <30
`sort`s signature changed in Emacs 30 from:

  (sort SEQ PREDICATE)

To

  (sort SEQ &key KEY LESSP REVERSE IN-PLACE)

Amend: 6009c2b838
2025-08-31 14:34:45 +02:00
Henrik Lissner
83eba01bff
refactor(python): string= first, then executable-find
The latter is a little slower depending on the order of $PATH.
2025-08-31 09:50:05 +02:00
Henrik Lissner
2e508c299d
fix(cli): 'Failed to clone package' error
A regression introduced in 8cdddd8.

Fix: #8471
Amend: 8cdddd87d9
2025-08-30 18:35:05 +02:00
Henrik Lissner
7dd66cc3d7
fix(php): remove unused async dependency
No longer needed without php-extras (removed in 9e5e4cf).

Amend: 9e5e4cf78b
2025-08-30 15:48:29 +02:00
Henrik Lissner
8cdddd87d9
tweak(cli): download package archives by default
From this point on, Straight will download packages from tarballs (if
possible) from their associated forge rather than clone them as git
repositories. This is (marginally) faster and consumes significantly
less space. Doom treats its packages as build artifacts anyway.

This shouldn't cause any immediate breakage, but it may upset folks who
want their local package installs to be repositories. For them, this can
be reversed by simply adding this to $DOOMDIR/init.el:

  (after! doom-straight
    (setq straight-vc-use-snapshot-installation nil))

This only applies to packages installed after this point. Packages that
are already cloned as a repo will stay that way until the next time
they're uninstalled or reinstalled from scratch. Plus it only works on
systems that have `tar` in their $PATH *and* forges that are
supported (at the time of writing: github, gitlab, codeberg, bitbucket,
and sourcehut).

Ref: radian-software/straight.el@4241b63952
2025-08-30 13:40:06 +02:00
Henrik Lissner
4b9f237250
bump: :doom
bbatsov/projectile@0da59734fb -> bbatsov/projectile@9325c45e0f
emacs-compat/compat@2577cc74d9 -> emacs-compat/compat@cccd41f549
emacs-straight/project@de0deb8dbf -> emacs-straight/project@a0ebb2e9cf
emacsmirror/nongnu_elpa@9ee5a7657a -> emacsmirror/nongnu_elpa@67c49cfdf5
jscheid/dtrt-indent@015b26d6d6 -> jscheid/dtrt-indent@9108979357
noctuid/general.el@74d4541781 -> noctuid/general.el@a48768f85a
radian-software/straight.el@4128d42399 -> radian-software/straight.el@8b3a54b247
rainstormstudio/nerd-icons.el@d972dee349 -> rainstormstudio/nerd-icons.el@6868c05c6e
2025-08-30 13:39:39 +02:00
Henrik Lissner
6084404a07
docs(beancount): flesh out module readme 2025-08-30 11:58:22 +02:00
Henrik Lissner
d77d39ab46
refactor(scala): remove redundant config
Amend: c5dd2847ff
2025-08-30 10:30:26 +02:00
Henrik Lissner
bcb2c56dd9
fix(haskell): haskell-ts-mode: repl & eglot integration
Amend: 47fe11cd76
2025-08-30 10:30:26 +02:00