Commit Graph

13054 Commits

Author SHA1 Message Date
Henrik Lissner
c5dd2847ff feat(scala): add treesit support 2025-05-22 19:50:29 +02:00
Henrik Lissner
5db361b474 fix(tree-sitter): remove redundant yaml source
Amend: 2556cb58f2
2025-05-22 18:32:04 +02:00
Henrik Lissner
0c311a5172 feat(elixir): add treesit support 2025-05-22 18:32:03 +02:00
Henrik Lissner
7f8b24d1b8 fix(beancount): enhance +beancount/clone-{,this-}transaction
- `+beancount/clone-transaction` now completes for all transactions
  across this and any included files (depending on the value of
  `+beancount-files`).
- Handles an edge case where `+beancount/clone-this-transaction` would
  try and fail to clone a transaction at point where there wasn't any.
2025-05-22 16:39:20 +02:00
Henrik Lissner
d3e8ca8d9d feat(beancount): enhance completion across the board
Enhances completion for beancount-mode in the following ways:

1. Adds completion for:
   - Event directives and values,
   - The payee field in transactions,
   - Currencies and commodities,
2. Fixes completion for #tag and ^links not working at the end of a
   transaction's heading.
3. Completion now scans not only the current file, but any included
   files (recursively) for candidates if `+beancount-files' is set to
   `auto`. It can otherwise be set to a list of static files or set to
   `nil` (reverts to only scanning the current buffer). This applies not
   only to completion-at-point functions, but also interactive commands
   like `beancount-insert-account'.

This is all very rudimentary and needs polish!
2025-05-22 16:33:23 +02:00
Henrik Lissner
a02871ba83 feat(beancount): support lines only read by linter
Adds support for meta lines that only the flymake linter will see.
These are lines prefixed by any number of semicolons followed by a hash
then space. E.g.

;# include "../config.beancount"
;# 2025-01-01 pad Assets:Bank Equity:Opening-Balances

This is useful for silencing the linter in multi-file beancount projects
rather than suffer the usual deluge of multiple-include errors and
redundancies.
2025-05-22 16:33:23 +02:00
Henrik Lissner
8627117d63 feat(beancount): activate on *.bean files too 2025-05-22 16:33:23 +02:00
Henrik Lissner
b173fedaff refactor(beancount): move autoloads to sub-directory 2025-05-22 16:33:23 +02:00
Henrik Lissner
11b4b8d2e5 revert: transient
magit/transient@HEAD -> magit/transient@25b994a565

Seems to be a source of many issues the past month or so. About time we
pin it by stable release.

Fix: #8394
2025-05-18 00:35:24 +02:00
Henrik Lissner
57b8d5fd8e fix(beancount): flymake-bean: false positives from relative paths
Beancount tools and Fava recognize relative paths in include and
document directives, and documents options. However, flymake-bean pipes
the buffer's contents to bean-check via /dev/stdin, so paths are
resolved relative to /dev instead of the location of the containing
beancount file, resulting in file errors. This commit expands those
relatives paths before sending the buffer's contents to bean-check to
resolve these false positives.
2025-05-18 00:33:14 +02:00
Henrik Lissner
bda27228eb fix(beancount): linter in narrowed buffers
flymake-bean only sends the visible buffer to bean-check, causing a
cascade of unhelpful linter warnings and errors.
2025-05-18 00:32:49 +02:00
Henrik Lissner
55e97eb78a fix(beancount): +beancount/balance: omit zeroed accounts 2025-05-16 10:55:47 +02:00
Henrik Lissner
6d9484820a fix(tty): s/tty-setup-hoom/tty-setup-hook
Amend: e25e684014
2025-05-16 10:55:03 +02:00
Henrik Lissner
bd908e4c47 revert: eglot
emacs-straight/eglot@0b0f894713 -> emacs-straight/eglot@6a9e0c76b9

I incorrectly believed that #8380 was resolved upstream, but it hasn't,
therefore this revert is necessary to avoid Eldoc errors on the latest
commit of Eglot.

Amend: 50200762cd
Ref: 13e92ceb3c
Ref: #8380
2025-05-16 09:28:29 +02:00
Henrik Lissner
e25e684014 feat(tty): add support for TTY child frames in 31+ 2025-05-16 08:53:00 +02:00
Henrik Lissner
a329d63f7d fix(tree-sitter): discard COMMIT recipe argument on <=30.x
Otherwise `treesit--install-language-grammar-1` will throw an arity
error on Emacs <=30.x when installing grammars.

Fix: #8393
2025-05-16 08:49:20 +02:00
Henrik Lissner
776da0dcf1 fix(csharp): csharp-ts-mode: side-effects on auto-mode-alist
Would otherwise be imposed every time the mode is activated.
2025-05-16 08:46:21 +02:00
Henrik Lissner
78f55f3a45 fix(magit): update diff-hl on revert
Not a complete fix, because +vc-gutter-update-h isn't aggressive or
responsive enough to changes in VC in buffers that haven't changed, but
I'll address that later.
2025-05-15 19:35:06 +02:00
Henrik Lissner
b546522257 docs(tree-sitter): revise doctor output 2025-05-15 18:58:29 +02:00
Henrik Lissner
2556cb58f2 feat(yaml): add treesit support 2025-05-15 18:55:42 +02:00
Henrik Lissner
8931c48913 fix(cc): treesit modes not remapped to
c-ts-mode and c++-ts-mode weren't being remapped to from c-mode/c++-mode
because of extra noise in `major-mode-remap-defaults`. I wish these
packages would leave these variables alone and leave it to the user to
configure; they're often inconsistent and overbearing.
2025-05-15 18:31:55 +02:00
Henrik Lissner
5be0df24d3 docs(csharp,julia,lua,markdown): mention +tree-sitter requirements 2025-05-15 18:19:32 +02:00
Henrik Lissner
9073b24878 feat(php): add treesit support 2025-05-15 18:19:32 +02:00
Henrik Lissner
e0e2c3aa61 feat(janet): add treesit support 2025-05-15 18:19:24 +02:00
Henrik Lissner
8ac83f4600 fix(indent-guides): treesit support 2025-05-15 18:19:22 +02:00
Henrik Lissner
621ea4d56c refactor(hy): remove redundant mode/interpreter entries
These are set by the package's autoloads.
2025-05-15 17:47:27 +02:00
Henrik Lissner
fabce333e0 fix(undo): undo-tree visualizer refusing to quit in some cases
This is due to other dedicated/side popups and/or windows causing the
undo-tree visualizer buffer to open in difficult-to-delete windows. This
should be reported and addressed upstream, though.

Fix: #8198
2025-05-15 15:18:35 +02:00
Henrik Lissner
1670ce2767 feat!(cc): add treesit support
BREAKING CHANGE: Besides treesit support, this removes a few
fontification enhancements (in favor of tree-sitter).
2025-05-15 13:01:40 +02:00
Henrik Lissner
c403bb5e2f feat(csharp): add treesit support 2025-05-15 13:01:40 +02:00
Henrik Lissner
46b87362f7 feat(julia): add treesit support 2025-05-15 13:01:40 +02:00
Henrik Lissner
e6caaef9e6 fix(agda): remove defunct tree-sitter.el support 2025-05-15 13:01:40 +02:00
Henrik Lissner
f002424106 feat(lua): add treesit support 2025-05-15 13:01:40 +02:00
Henrik Lissner
445c982838 feat(ruby): add treesit support 2025-05-15 13:01:40 +02:00
Henrik Lissner
7cb23f3359 feat(markdown): add treesit support 2025-05-15 13:01:40 +02:00
Henrik Lissner
a372eba7cd feat(python): add treesit support 2025-05-15 13:01:39 +02:00
Henrik Lissner
f2678b3ea2 feat(fold): add treesit-fold support 2025-05-15 13:01:39 +02:00
Henrik Lissner
1ac1b70d4e refactor!(tree-sitter): replace tree-sitter w/ treesit
BREAKING CHANGE: This rewrites the :tools tree-sitter module to use
treesit instead of tree-sitter.el. Users will need to adapt to treesit
and remove any tree-sitter-specific config in their dotfiles.

Ref: #7623
Ref: #7742
Ref: #8197
2025-05-15 13:01:29 +02:00
Henrik Lissner
50200762cd bump: :tools
doomelpa/code-review@fba8fe3343 -> doomelpa/code-review@303edcfbad
emacs-citar/citar@ce5e9644ed -> emacs-citar/citar@5ef097beba
emacs-lsp/lsp-mode@54251da4ff -> emacs-lsp/lsp-mode@c77ba14106
emacs-straight/dape@588a907c87 -> emacs-straight/dape@8dbe56d7c7
emacs-straight/eglot@6a9e0c76b9 -> emacs-straight/eglot@0b0f894713
emacs-tree-sitter/elisp-tree-sitter@12f92ef399 -> emacs-tree-sitter/elisp-tree-sitter@1c455b0953
emacs-tree-sitter/tree-sitter-langs@4eb4989d1a -> emacs-tree-sitter/tree-sitter-langs@becd29c756
emacsorphanage/quickrun@a5c9a5e8c6 -> emacsorphanage/quickrun@bae8efb8c5
karthink/gptel@1aa5f1c10d -> karthink/gptel@e1050ef6e5
magit/magit@531e7ca619 -> magit/magit@04ee83d93f
2025-05-15 11:39:50 +02:00
Henrik Lissner
6c1965b1ed fix(magit): +magit-auto-revert: handle edge cases
In cases where user have changed `vc-follow-symlinks`,
causing *Messages* spam and unexpected prompting, OR where revert-buffer
hooks and handlers are prematurely triggered for file buffers that
haven't been changed.

Fix: #8392
2025-05-15 11:39:50 +02:00
David Sawatzke
4be8557eb3 docs(cc): Specify -- with command for bear 2025-05-15 09:39:34 +00:00
Henrik Lissner
4b99e6f156 fix(debugger): wrong-number-of-arguments error
dape-breakpoint-save's sole argument is optional. Calls omitting it
would cause our advise to throw an arity error.

Amend: 52dbde017a
2025-05-14 23:43:58 +02:00
Henrik Lissner
e614ffbda8 fix(llm): don't auto-kill gptel popup buffer
Fix: #8387
2025-05-11 20:34:14 -04:00
Henrik Lissner
0658c1f863 fix(use-package): omit bind-key-pkg.el
Fix: #8300
Ref: melpa/melpa#9193
2025-05-11 20:34:11 -04:00
Henrik Lissner
07ea4b1ee0 nit(terraform): reformat
To match the formatting of other Doom modules.
2025-05-11 04:20:06 -04:00
Debashis Biswas
56fc5410c2 fix(terraform): duplicate localleader keybind 2025-05-11 00:52:54 -04:00
Henrik Lissner
12f08c9fb8 fix(csharp): s/dotnet-csharpier/csharpier
For both the formatter command and the doctor check.

Fix: #8386
2025-05-11 00:51:27 -04:00
Henrik Lissner
190a389cf8 fix(org): remove [return] keybinds
I'm only trying to override the RET key that evil-org binds, but also
binding these to [return] interferes with "RET" keybinds in various
places, like transient bindings on RET (e.g. gptel).
2025-05-11 00:51:10 -04:00
Henrik Lissner
5a69637072 tweak(default): font resizing keybinds
Conform keybinds to MacOS conventions for font resizing commands.

Also:
- Moves numbered workspace keybinds out of +evil-bindings.el so non-evil
  users can enjoy them.
- Rebinds s-0 from +workspace/switch-to-final to doom/reset-font-size.

Fix: #8379
Amend: b70d137f1a
2025-05-11 00:50:33 -04:00
Henrik Lissner
44136a66dd bump: :emacs dired
alexluigit/dirvish@e8ec5765da -> alexluigit/dirvish@d877433f95

Fix: #8384
2025-05-10 13:33:08 -04:00
Henrik Lissner
66f1b25dac fix(upload): install ssh-deploy from emacsmirror
cjohansson/emacs-ssh-deploy has inexplicably vanished, causing `doom
sync` to fail when trying to install it, so we switch to a mirror.

Fix: #8383
2025-05-09 21:31:11 -04:00