Commit graph

397 commits

Author SHA1 Message Date
Henrik Lissner
024503b2f4
Add ${...} support to evil-surround in scala
For string interpolation.
2020-05-28 04:40:38 -04:00
Tudor Roman
649052337b
fix +format/region when formatting with LSP 2020-05-26 18:16:23 +03:00
Henrik Lissner
3a38fc633c
Change doom-{interactive,debug}-mode suffix to -p
Because these are not really modes.

Also makes `doom-debug-mode` an actual (global) minor mode.
2020-05-25 03:43:40 -04:00
Henrik Lissner
d8fda76c7d
yas-also-auto-indent-first-line = nil
Stop yasnippet from aggressively reindenting the whole snippet; assume
the user is expanding the snippet exactly where they want it.

Half-fixes #3211
2020-05-24 14:29:41 -04:00
Henrik Lissner
090a68ab8f
Add +format-with-lsp variable
To control whether or not to use LSP code formatter when it is
available.
2020-05-21 01:20:00 -04:00
Henrik Lissner
4c61f22132
Fix #3175: don't format org-exported buffers
By inhibiting the formatter in temp or special buffers.
2020-05-20 04:46:37 -04:00
Henrik Lissner
f0632f812b
Bump :editor evil
emacs-evil/evil@d243eae -> emacs-evil/evil@3f3b2fe
emacs-evil/evil-collection@ba36304 -> emacs-evil/evil-collection@1237452

To include emacs-evil/evil-collection#335
2020-05-18 17:17:11 -04:00
Henrik Lissner
470fe21098
Merge pull request #3137 from CeleritasCelery/spell
Wrap flyspell-correct-at-point in feature check
2020-05-18 03:00:22 -04:00
Troy Hinckley
993a0770e5 Allow the user to override lispyville themes 2020-05-17 10:29:25 -06:00
Troy Hinckley
00ddb2eba6 Only rebind ispell-word if flyspell-correct is enabled
flyspell-correct-at-point is not defined unless the the spell module is
enabled.
2020-05-16 22:33:33 -06:00
Henrik Lissner
ea18c83c0a
General refactors & reformatting across the board 2020-05-15 01:44:53 -04:00
Henrik Lissner
abb9ab7674
Fix :mc/REGEXP not placing real cursor in correct position
With ':mc/abc' we should get

  a b c
  a b [a]bc
  a [a]bc c
  [a]bc b c
  a b c

Instead, we got

  a b c
  a b abc
  a [a]bc c
  [a]bc b c
  a b c

And the real cursor would be somewhere else (on the same column it was
left in when you were in visual mode).
2020-05-13 15:23:19 -04:00
Henrik Lissner
7472cffadd
Integrate LSP into +format/{buffer,region} commands
Relevant to #1652
2020-05-08 22:04:59 -04:00
Henrik Lissner
0f696ec8b3
Merge pull request #3017 from sei40kr/fix-set-formatter
Fix set-formatter! documentation
2020-05-07 03:19:00 -04:00
Henrik Lissner
680ab78767
Merge pull request #3050 from sei40kr/fix-java-templates
Fix Java file templates
2020-05-07 01:25:25 -04:00
Seong Yong-ju
b8e85a42c7 Remove .yas-setup.el for java-mode 2020-05-07 08:28:12 +09:00
Henrik Lissner
9a628c7a12
Fix missing paren in +format/region-or-buffer #3054
Because I'm a derp
2020-05-06 16:43:42 -04:00
Henrik Lissner
200ab5b9af
Fix #3054: format with lsp only if server is capable
And fall back to format-all otherwise.
2020-05-06 16:29:32 -04:00
Henrik Lissner
da2247e3d6
Remove redundant +default/lsp-format-region-or-buffer command 2020-05-06 15:14:16 -04:00
Seong Yong-ju
53eb32ea16 Fix Java file templates 2020-05-06 18:24:10 +09:00
James Ravn
300bc65918
Use lsp-format-region-or-buffer if available
Currently the user has to select `SPC c F` for lsp format. But if
lsp-mode is enabled, the user will always want to use the LSP formatter.
So this changes the default `SPC c f` to use lsp formatter if available.
This simplifies the interface a bit so the user doesn't have to worry
about selecting the "right" format, just like how other commands get
auto bound to LSP functions.
2020-05-05 09:52:44 +01:00
Henrik Lissner
35591cfc4c
Correct map! indentation
...now that we have proper property-list indentation (thanks to
03ecfed1a).
2020-05-04 16:53:26 -04:00
Henrik Lissner
c1f973bf4a
Fix #3037: gr/gR not bound on correct elfeed keymap 2020-05-04 16:51:21 -04:00
Henrik Lissner
f998c912c1
Fix evil-collection-minibuffer for first minibuffer
evil-minibuffer-setup-minibuffer didn't kick in until the second time
you invoked a minibuffer after startup.
2020-05-02 17:23:50 -04:00
Henrik Lissner
3eafe10874
Switch to hlissner/evil-escape fork
To fix syl20bnr/evil-escape#91 and syl20bnr/evil-escape#93, since the
package is unmaintained.
2020-05-02 13:17:10 -04:00
Henrik Lissner
69868a8f47
Fix evil-escape in evil-collection-powered minibuffer 2020-05-01 18:39:40 -04:00
Seong Yong-ju
e29e20cc52 Fix set-formatter! documentation
Remove :install from supported keywords.
2020-05-01 13:08:28 +09:00
Henrik Lissner
08f139391d
Bump :editor
PythonNut/evil-easymotion@79c13ed -> PythonNut/evil-easymotion@f96c2ed
abo-abo/lispy@c7e282a -> abo-abo/lispy@cdaa9c7
clemera/objed@8dc1770 -> clemera/objed@e89d8da
emacs-evil/evil-collection@493d523 -> emacs-evil/evil-collection@ba36304
emacs-evil/evil@8aa6337 -> emacs-evil/evil@d243eae
hlissner/doom-snippets@feaedeb -> hlissner/doom-snippets@422f683
hlissner/evil-snipe@3ec8adf -> hlissner/evil-snipe@2ba6353
joaotavora/yasnippet@ac03c2f -> joaotavora/yasnippet@5b1217a
mrkkrp/vimish-fold@d3248a4 -> mrkkrp/vimish-fold@6368523
redguardtoo/evil-nerd-commenter@747e346 -> redguardtoo/evil-nerd-commenter@1bd2de5

We're also transitioning from abbreviated SHA1 hashes to full ones. See
45cdfb125 for why.
2020-04-30 01:28:02 -04:00
Henrik Lissner
d12752324a
Introduce letf! convenience macro
A more succinct cl-letf, which allows for local functions and macros.
2020-04-29 23:48:21 -04:00
Henrik Lissner
91c00d4756
Use +word-wrap-mode instead of visual-line-mode default
If the word-wrap module is enabled.
2020-04-29 15:54:21 -04:00
Henrik Lissner
e9b288744d
Support evil-collection-setup-minibuffer 2020-04-27 16:32:21 -04:00
Henrik Lissner
c1127a5bde
Rewrite move/copy/delete file commands
To use rename-file, copy-file and delete-file, so these commands can
enjoy the benefits of any plugins that have advised these, like org-roam
does for rename-file.
2020-04-27 01:51:18 -04:00
Henrik Lissner
50ff934ff2
Fix #2832: filename modifiers replaced with empty strings 2020-04-26 04:12:33 -04:00
Henrik Lissner
e1a9bf234f
Minor refactors 2020-04-26 02:33:37 -04:00
Henrik Lissner
db03746daf
editor/evil: mention vim-unimpaired in ported plugins 2020-04-25 18:36:51 -04:00
Henrik Lissner
f8693d0f8c
Load snippets *after* yasnippet config in daemon 2020-04-24 04:07:57 -04:00
Henrik Lissner
06d5d5e6c0
General refactors, reformatting & comment revision 2020-04-23 23:56:17 -04:00
Rudi Grinberg
b3bbcf61ac Add full name to :cap
Makes it available as :capture which is a slightly easier to understand
name.
2020-04-21 13:30:17 -07:00
Henrik Lissner
afcdae4fff
Fix invoking helpful-key from evil-ex
This should probably be reported upstream, but to whom? Helpful? Evil?
The Doom slayer?
2020-04-17 23:08:28 -04:00
Henrik Lissner
cf355d4d42
Bump :editor snippets
hlissner/doom-snippets@2a0c3cf -> hlissner/doom-snippets@feaedeb
joaotavora/yasnippet@ac03c2f -> joaotavora/yasnippet@5b1217a
2020-04-17 21:59:25 -04:00
Henrik Lissner
a7a5cbb7bf
editor/snippets: refactor & comment
And load snippets earlier in daemon sessions.
2020-04-17 21:58:55 -04:00
Rudi Grinberg
bcf37b9bee Fix :last and :popup
The doom/ prefix for popup commands no longer exists
2020-04-17 18:03:34 -07:00
Rudi Grinberg
890d402e22 Make :ls/:buffers invoke ibuffer
Only when evil and ibuffer are enabled

Signed-off-by: Rudi Grinberg <me@rgrinberg.com>
2020-04-17 17:38:29 -07:00
Henrik Lissner
a2714f414a
Minor refactors 2020-04-16 21:55:59 -04:00
Henrik Lissner
eb2e2b2a4f
Bump to redguardtoo/evil-nerd-commenter@747e346
From redguardtoo/evil-nerd-commenter@60b8862

Because redguardtoo/evil-nerd-commenter#109 was merged
2020-04-16 21:52:41 -04:00
Henrik Lissner
c96f553e43
Bump :editor evil
emacs-evil/evil-collection@fe0700e -> emacs-evil/evil-collection@493d523
emacs-evil/evil@2969324 -> emacs-evil/evil@8aa6337
janpath/evil-numbers@d988041 -> janpath/evil-numbers@c2cfdd1
redguardtoo/evil-nerd-commenter@4387407 -> redguardtoo/evil-nerd-commenter@60b8862

Fixes #2912
2020-04-16 20:10:20 -04:00
Akhil Wali
045e893e97
Use default god-exempt-major-modes 2020-04-16 13:46:26 +12:00
Akhil Wali
88507a0319
Bump :editor god
emacsorphanage/god-mode@b82ce18 -> emacsorphanage/god-mode@1eb6ef3
2020-04-16 13:46:21 +12:00
Steven vanZyl
ce2fee138a
Add set -euo pipefail to sh-mode file template
Adds a line with set -euo pipefail to the sh-mode file template, which improves the erroring of bash scripts
As described by https://ashishb.net/all/the-first-two-statements-of-your-bash-script-should-be/
2020-04-15 14:39:47 -04:00
Henrik Lissner
bce0cc2152
Change how evil-easymotion is lazy loaded
Fixes an issue where gs wouldn't work after an operator.
2020-04-14 15:41:54 -04:00