Commit Graph

16525 Commits

Author SHA1 Message Date
e71d564387 Fix +vertico-file-search when separator is used
instead of the Perl style.
`concat` can't operate on characters.
2021-07-29 09:42:42 +07:00
829a44f79c Quickly close the lsp-signature popup by ESC*
Add to `doom-escape-hook` a function that closes the displayed LSP
signature.
2021-07-29 08:59:48 +07:00
56107744df Merge pull request #5302 from holyfight6/format-all-lsp
Changed editor/format lsp feature requirement from textDocument/rangeFormatting to textDocument/formatting
2021-07-28 21:28:19 -04:00
3d0b609c1e Merge pull request #5303 from daanturo/project-async-command-binding
Add "SPC p &" binding as projectile-run-async-shell-command-in-root
2021-07-28 21:28:08 -04:00
4c523e36b9 Merge pull request #5311 from daanturo/fix-+lookup/in-docsets+vertico
Fix +lookup/in-docsets's vertico section
2021-07-28 21:27:47 -04:00
ea10da4459 Fix +lookup/in-docsets's vertico section
Convert the let form to let* to fix `Symbol’s value as variable is void:
sink`.
2021-07-29 08:21:17 +07:00
d3f372cd83 Merge pull request #5310 from iyefrat/bump-fix
fix: use new commit format in `doom/bumpify-diff`
2021-07-28 17:03:29 -04:00
ae2a63137a fix: use new commit format in doom/bumpify-diff 2021-07-28 23:57:39 +03:00
6065073faa feat(lua): improve fennel support
+ Add fennel-show-documentation handler (on K).
+ Add outline-minor-mode support.
+ Set tab-width to 2 in fennel-mode, for consistency with other lisp
  modes.
2021-07-28 15:26:43 -04:00
df520dfd44 feat(popup): switch-to-buffer-obey-display-actions = t
This should give the popup module much more coverage, but *may* also
cause edge cases. Testing needed!
2021-07-28 15:23:56 -04:00
4d862d7770 fix(popup): org-edit-src breaks if forcibly killed
Invoke org-edit-src and an edit buffer is displayed for the src block at
point. If that popup is killed incorrectly, it leaves the original org
buffer (specifically, the src block you were editing) in a half-broken
state; forever waiting for you to finish editing that block.

This can happen when the edit window is a popup window and you switch
workspaces (which temporarily deletes popup windows), so clean up those
popups properly before switching.
2021-07-28 15:16:20 -04:00
d189132be1 fix(org): oversized org-todo popup
In the presence of multiple, horizontal splits, the org-todo popup
consumes ~50% of the vertical real-estate of its northern neighbor when
created. This is due to an edge case with some failsafe code somewhere
down org-fit-window-to-buffer's stack. This fix ensures the popup is
always a sane size.

And by enabling +popup-buffer-mode in it, we ensure it will be treated
as a popup (e.g. solaire-mode will be active in it, no modeline, etc).
2021-07-28 15:15:56 -04:00
2400e8b275 fix(popup): prioritize local actions over popup rules
Otherwise, commands like switch-to-buffer-other-{tab,window,frame} don't
do as they promise and revert to our global popup rules.

Fix #5301
2021-07-28 15:12:37 -04:00
823fb275a0 feat(org): expand parents for showNlevels option
#+STARTUP: showNlevels

This tells org to expand N levels at startup, but it only partially
unfolds headings, so show2levels gets you:

  * A [...]
  ** X [...]
  ** Y [...]
  ** Z [...]

Instead of (what I think is expected):

  * A
  Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do
  eiusmod tempor incididunt ut labore et dolore magna aliqua.

  ** X [...]
  ** Y [...]
  ** Z [...]

Perhaps this should be upstreamed?
2021-07-28 15:02:14 -04:00
7b274c7dbe feat(org): add native :async support
ob-comint (included with org) added native :async support. It only works
for python currently, but unlike ob-async supports :session for :async
python blocks. In fact, it *requires* :session, so we still fall back to
ob-async in its absence, failing that, it ultimately falls back to
synchronous execution.
2021-07-28 15:00:38 -04:00
c48c01ebab feat(org): set org-num-face & org-num-skip-tags
+ Perhaps a dedicated face would be better, but org-special-keyword will
  do for now.
+ Don't number trees tagged :noexport: or :nonum:.
2021-07-28 14:06:35 -04:00
a3e01fb4fe fix(org): no mixed-pitch/spellcheck on org-footnote 2021-07-28 14:00:02 -04:00
c2e6db27d0 tweak: adopt +vertico as our default backend
This has been a long time coming. Vertico et co turned out to be what I
wanted ivy to be and more.
2021-07-28 13:11:45 -04:00
a6b6b6197b fix(vertico): TAB bound to non-interactive function 2021-07-28 13:11:45 -04:00
e0234dcab1 fix(pass): add vertico support 2021-07-28 13:11:45 -04:00
9d7338d4b8 fix(vertico): add +ivy/jump-list analogue
Fix 'SPC s j' for consult users.
2021-07-28 13:11:36 -04:00
33b646826b fix(vertico): add counsel-file-jump analogue
Fix 'SPC f F' / 'C-c f F' for vertico users
2021-07-28 12:54:23 -04:00
551e5adf81 fix(vertico): unreachable function in autoloads
+ Rename +vertico--embark-target-package to
  +vertico-embark-target-package-fn to conform to naming conventions,
  and because it's not a private function anymore.
+ Fix +vertico-embark-target-package-fn's indentation.

Fix #5208
2021-07-28 12:43:05 -04:00
2d56dd73dc fix(lookup): add vertico support to dash-docs
Close #5298
2021-07-28 12:42:58 -04:00
93f6591faf tweak: gcmh-idle-delay = 5 -> 0.5
Reduce the chance of memory leaks by being a little more aggressive
about idle GC. This *may* be too low; time will tell.
2021-07-28 12:42:46 -04:00
cd87cc0cc8 refactor: remove redundant org code
org-collect-keywords does the job here. No need to reinvent the wheel.
2021-07-28 12:42:22 -04:00
fd844ea18d fix(vertico): escape perl syntax in selection
+ Escape any special regexp characters in the active selection.
+ Change the async split character (#) to the first of %, @, !, &, or /
  that is absent in the active selection (falling back to %
  otherwise) (since consult doesn't recognize escaping for these
  characters).
2021-07-28 12:37:47 -04:00
ffcfb6d8b3 tweak(vertico): tune consult async timers
For a more responsive UX.
2021-07-28 12:03:42 -04:00
5ed026e1c1 Add "SPC p &" binding
As projectile-run-async-shell-command-in-root
2021-07-27 22:05:32 +07:00
bf488394e9 editor/format lsp feature requirement from textDocument/rangeFormatting to textDocument/formatting. 2021-07-27 17:49:57 +08:00
caf480e18a Merge pull request #5300 from alexdesiqueira/patch-1
Adding new line on string on how to upgrade Emacs
2021-07-26 20:48:19 -04:00
44c8d3c8e4 Adding new line on string on how to upgrade Emacs
The current string presented breaks the address on how to upgrade Emacs:

```
❯ doom install
Detected Emacs 26.3 (at emacs).

Doom only supports Emacs 27.1 and newer. A guide to install a newer version
of Emacs can be found at:

  https://doomemacs.org/docs/getting_started.org#on-linuxAborting...
```

Just adding a `\n` at the end of the string would solve it.
2021-07-26 17:45:52 -07:00
cf1fa4eeba Fix #5297: don't defer lv incrementally on magit
transient no longer depends on it.
2021-07-26 02:57:33 -04:00
d7a223493e completion/vertico: consult-async-min-input = 2
Legitimate two-letter searches are common enough in codebases that
consult-async-min-input's default value of 3 catches me up more often
than not.
2021-07-26 02:56:46 -04:00
97048e2db4 completion/vertico: lazily activate recentf-mode
This'll do for now.
2021-07-25 18:03:12 -04:00
cac9158b36 completion/vertico: use fd for counsel-find
If available.
2021-07-25 18:02:46 -04:00
617fc7f1cc Merge pull request #5296 from Wetlize/add-helpful-update-kbd
editor/evil: Add gr keybinding to refresh `helpful` buffers
2021-07-25 17:58:50 -04:00
dd9657d90d Fix SPC f F w/ vertico + consult
Not a perfect analogue to counsel-file-jump, but it's a start (and
better than the previous no-op).
2021-07-25 17:55:59 -04:00
54a556c2fa lang/emacs-lisp: add flycheck-package 2021-07-25 16:37:28 -04:00
91e1eac024 Fix doom/delete-backward-word errors in minibuffer
The cause of the error is harmless, but the error itself was causing
breakage in the minibuffer.
2021-07-25 16:26:47 -04:00
2f577482a0 Remove docs/CNAME
Was committed prematurely.
2021-07-25 15:47:58 -04:00
b92caaa3c2 completion/vertico: reformatting 2021-07-25 15:47:58 -04:00
cfcf7e0d03 Open embark grep buffers in popup 2021-07-25 15:47:58 -04:00
ce905b9246 Expand latex snippets in org-mode fragments on TAB 2021-07-25 15:41:29 -04:00
e12519d250 editor/evil: Add gr keybinding to refresh helpful buffers 2021-07-25 22:36:01 +03:00
017ada67c4 Merge pull request #5295 from iyefrat/vertico-export-fix
vertico: require embark in +vertico/embark-export-write
2021-07-25 12:26:11 -04:00
c4a2b0bb26 vertico: require embark in +vertico/embark-export-write
needed now that embark is lazy loaded
2021-07-25 19:05:52 +03:00
cb4e13e387 Merge pull request #5288 from iyefrat/vertico-file-search
vertico: remove +fuzzy check in +vertico-file-search
2021-07-25 04:58:56 -04:00
83858fcaf9 vertico: remove +fuzzy check in +vertico-file-search
Doesn't do anything, it's a leftover from when the function was ported
from the ivy module.
2021-07-25 11:50:45 +03:00
4ac5332a1d Merge pull request #5271 from Wetlize/add-roam2
lang/org: Add `+roam2` flag for org-roam v2
2021-07-25 04:13:03 -04:00