Commit graph

1418 commits

Author SHA1 Message Date
Henrik Lissner
76431f699e
fix(tree-sitter): ensure load order
use-package's :after keyword introduces some load order behavior that
complicates the user's ability to target it with either after! or
with-eval-after-load. Best to avoid it.

Ref: jwiegley/use-package#829
2022-06-18 15:01:13 +02:00
Henrik Lissner
173396a963
merge: pull request #5401 from jeetelongname/tree-sitter 2022-06-17 22:55:42 +02:00
Henrik Lissner
608acd9a3a
bump: :tools
SavchenkoValeriy/emacs-powerthesaurus@810a25056c -> SavchenkoValeriy/emacs-powerthesaurus@88bc5229cb
Silex/docker.el@fbd896e313 -> Silex/docker.el@44f0bbec9b
editorconfig/editorconfig-emacs@1d4acc3ec7 -> editorconfig/editorconfig-emacs@1f6f16c24f
emacs-citar/citar@ee98b94f7f -> emacs-citar/citar@dd028c6a4d
emacs-straight/rainbow-mode@949166cc01 -> emacs-straight/rainbow-mode@55a8c15782
emacsorphanage/quickrun@c680f5137c -> emacsorphanage/quickrun@314beae43c
jacktasia/dumb-jump@dbb915441a -> jacktasia/dumb-jump@1dd583011f
magit/forge@66b3993c98 -> magit/forge@36208c43bf
magit/magit@a4a78d341a -> magit/magit@c1fb53d3de
millejoh/emacs-ipython-notebook@e04e1e19c6 -> millejoh/emacs-ipython-notebook@7b9b14435c
purcell/envrc@57d78f0138 -> purcell/envrc@7f36664fc6
rafalcieslak/emacs-company-terraform@2d11a21fee -> rafalcieslak/emacs-company-terraform@8d5a16d1bb
rejeep/prodigy.el@168f5ace16 -> rejeep/prodigy.el@a3be00d3b9
tkf/emacs-request@c769cf33f2 -> tkf/emacs-request@38ed1d2e64
tmalsburg/helm-bibtex@db73156576 -> tmalsburg/helm-bibtex@ce8c17690d
2022-06-17 21:53:56 +02:00
Henrik Lissner
0a3c123d72
fix(magit): {1-4} overriding evil keybinds
evil-collection-magit-section introduces some redundant keybinds on
number keys 1-4, so our hack to correct these keys needed an adjustment.

And by unbinding these keys at the source (magit-section-mode-map), we
don't have to do the same for each inheriting keymap (like
code-review-mode-map and magit-mode-map).

Ref: emacs-evil/evil-collection@e26c869735
Amend: 31519d393a
2022-06-17 21:52:18 +02:00
Jeetaditya Chatterjee
7105292eed
docs(tree-sitter): add mention on how to enable
On a language level
2022-06-17 20:05:16 +01:00
Henrik Lissner
f76caeece3
bump: :tools debugger lsp
emacs-lsp/dap-mode@67fd9e5d4e -> emacs-lsp/dap-mode@50c2a99059
emacs-lsp/lsp-mode@9faa492692 -> emacs-lsp/lsp-mode@6b6afc00de
joaotavora/eglot@2b87b06d9e -> joaotavora/eglot@e835996e16

Close: #6461
Co-authored-by: MOHENOO <MOHENOO@users.noreply.github.com>
2022-06-17 18:54:27 +02:00
Henrik Lissner
1b8f46c7c5
bump: :tools debugger lsp
emacs-lsp/dap-mode@f918c0580b -> emacs-lsp/dap-mode@67fd9e5d4e
emacs-lsp/lsp-mode@1e7128c43f -> emacs-lsp/lsp-mode@9faa492692
emacs-lsp/lsp-ui@96b1ecbfbf -> emacs-lsp/lsp-ui@370022b678
gagbo/consult-lsp@a8eb3a062f -> gagbo/consult-lsp@19606a03cf
joaotavora/eglot@fd9a5646d1 -> joaotavora/eglot@2b87b06d9e
mohkale/consult-eglot@f93c571dc3 -> mohkale/consult-eglot@0da8801dd8

- Debuggers (see #6381):
  - Add support for new cpptools (upgraded from 0.29.0 to 1.9.8).
  - Add support for new codelldb (from 1.6.0 to 1.7.0).
  - Fix download issue of gdb-lldb (aka webfreak.debug).
- LSP support:
  - Fix inlay hints for rust-analyzer (see emacs-lsp/lsp-mode#3467)

Close: #6395
Close: #6381
Fix: #6394
Fix: #6403
Ref: emacs-lsp/lsp-mode#3467
2022-05-27 03:13:00 +02:00
Ellis Kenyo
e4184c6bc3 bump: :tools magit
magit/forge@eed613db88 -> magit/forge@66b3993c98
magit/magit@b4be194de1 -> magit/magit@a4a78d341a
wandersoncferreira/code-review@85ab2080e4 -> wandersoncferreira/code-review@d38fbe5930
2022-05-27 02:57:59 +02:00
Jeetaditya Chatterjee
349247fb3e
docs(tree-sitter): update goto bind table 2022-05-27 00:05:19 +01:00
Jeetaditya Chatterjee
e1056f0053
tweak(tree-sitter): rebind conditional nav key
Move the conditional bindings from `i` to `v` this is
to reflect the text object, the thinking being if users have to learn
one anti mnemonic then it should reflect all cases to make it easier to
swallow.
2022-05-27 00:04:56 +01:00
Pi-Cla
866e1b32bf
bump: :tools pdf
vedang/pdf-tools@326552eef7 -> vedang/pdf-tools@f9ccdf99e5

This bump also removes C++ entirely from pdf-tools, as it is not needed anymore for
correct compilation of `epdfinfo`. The following changes are made:

- Remove private headers from all the server code. This involves:
  - Replace private header functionality with the correct public
    functions provided by poppler.
  - Remove unneeded headers around date checks
  - Delete dead-code (headers, m4 macros)
- Remove C++, g++ and similar aliases from all the code. Also:
  - Remove related information from the README
  - Remove related information from CI and Dockerfiles

Ref: vedang/pdf-tools#96
Ref: vedang/pdf-tools@4460a4fd31
Fix: vedang/pdf-tools#102
Fix: politza/pdf-tools#706
Fix: vedang/pdf-tools#90
Fix: vedang/pdf-tools#86
2022-05-26 23:47:00 +02:00
Ellis Kenyő
7b66fbbed7
docs(lsp): add warning for missing npm 2022-05-26 23:38:50 +02:00
Itai Y. Efrat
68191e7419 fix(lookup): check ivy|helm-mode before using their backends 2022-05-26 23:37:44 +02:00
Jeetaditya Chatterjee
de052a7a92
docs(tree-sitter): add goto binding table 2022-05-24 15:38:31 +01:00
Jeetaditya Chatterjee
33de147b8f
bump: :tools tree-sitter
emacs-tree-sitter/tree-sitter-langs@0dd5e56e2f -> emacs-tree-sitter/tree-sitter-langs@deb2d8674b
meain/evil-textobj-tree-sitter@bfdef5a292 -> meain/evil-textobj-tree-sitter@0bf5bbbfec
2022-05-23 20:01:59 +01:00
Jeetaditya Chatterjee
84d47016d0
fix(tree-sitter): no longer eager load tree sitter 2022-05-22 21:26:10 +01:00
Jeetaditya Chatterjee
984564ea6c
bump: :tools tree-sitter
emacs-tree-sitter/elisp-tree-sitter@5e1091658d -> emacs-tree-sitter/elisp-tree-sitter@3cfab8a0e9
meain/evil-textobj-tree-sitter@e5fda8eca9 -> meain/evil-textobj-tree-sitter@bfdef5a292
2022-05-22 21:26:09 +01:00
Jeetaditya Chatterjee
65207ab3dc
docs(tree-sitter): add rebinding keys section 2022-05-22 21:26:09 +01:00
Jeetaditya Chatterjee
def8c05371
bump: :tools tree-sitter
emacs-tree-sitter/tree-sitter-langs@f4effc81fc -> emacs-tree-sitter/tree-sitter-langs@0dd5e56e2f
meain/evil-textobj-tree-sitter@f3b3e9554e -> meain/evil-textobj-tree-sitter@e5fda8eca9
2022-05-22 21:26:09 +01:00
Jeetaditya Chatterjee
45ed981b41
refactor(tree-sitter): put keys on ts-mode-map
- move map definition and binding into
  evil-textobj-tree-sitter :config body

- replace +tree-sitter-keys-mode  with
  tree-sitter-mode as bind site

- remove +tree-sitter-keys-mode from tree-sitter! autodef
2022-05-22 21:26:09 +01:00
Jeetaditya Chatterjee
74fc2a87c9
tweak(tree-sitter): gate textobj maps 2022-05-22 21:26:08 +01:00
Jeetaditya Chatterjee
561eb533a8
nit(tree-sitter): remove defer, its redundant 2022-05-22 21:26:08 +01:00
Jeetaditya Chatterjee
56d0f02f31
feat(tree-sitter): add tree-sitter! autodef 2022-05-22 21:26:07 +01:00
Jeetaditya Chatterjee
c6a006dd68
docs(tree-sitter): replace {add,remove}-hook!
these are redundant in these contexts
2022-05-22 21:26:07 +01:00
Jeetaditya Chatterjee
869aefb523
docs(tree-sitter): remove no textobj found entry
This is no longer needed as this has been resolved upstream
2022-05-22 21:26:07 +01:00
Jeetaditya Chatterjee
12bf2e0b2f
bump: :tools tree-sitter
emacs-tree-sitter/tree-sitter-langs@599570cd2a -> emacs-tree-sitter/tree-sitter-langs@f4effc81fc
meain/evil-textobj-tree-sitter@ff733576d1 -> meain/evil-textobj-tree-sitter@f3b3e9554e
2022-05-22 21:26:07 +01:00
Jeetaditya Chatterjee
372565af0d
bump: :tools tree-sitter
emacs-tree-sitter/elisp-tree-sitter@771239bace -> emacs-tree-sitter/elisp-tree-sitter@5e1091658d
emacs-tree-sitter/tree-sitter-langs@a9b0390a75 -> emacs-tree-sitter/tree-sitter-langs@599570cd2a
meain/evil-textobj-tree-sitter@607b71f38a -> meain/evil-textobj-tree-sitter@ff733576d1
2022-05-22 21:26:06 +01:00
Jeetaditya Chatterjee
9c00df72d6
fix(tree-sitter): feature gate +tree-sitter-keys-mode
As this has a dependency on evil it makes sense to only load it when
evil is used, the entire mode is only needed for evil textobj
tree-sitter anyway
2022-05-22 21:26:06 +01:00
Jeetaditya Chatterjee
93b6f8adfb
docs(tree-sitter): update text obj table 2022-05-22 21:26:06 +01:00
Jeetaditya Chatterjee
3ccfc3d847
docs(tree-sitter): remove m1 warning
also remove unneeded apostroph
2022-05-22 21:26:06 +01:00
Jeetaditya Chatterjee
795a17e664
feat!(tree-sitter): rebind text objs to other keys
BREAKING CHANGE: rebind the text objects parameter and conditional to
'A' and 'v' respectively, this is to make the defaults a little more
intuitive and not clobber existing text objects that are useful to
people
2022-05-22 21:26:06 +01:00
Jeetaditya Chatterjee
a9bc2f08dc
bump: :tools tree-sitter
emacs-tree-sitter/elisp-tree-sitter@48b06796a3 -> emacs-tree-sitter/elisp-tree-sitter@771239bace
emacs-tree-sitter/tree-sitter-langs@3c0c82f9fb -> emacs-tree-sitter/tree-sitter-langs@a9b0390a75

this is to support both the new M1 macs and adding the haskell grammer
2022-05-22 21:26:05 +01:00
Jeetaditya Chatterjee
084d0a6918
docs(tree-sitter): mention typescript-tsx support 2022-05-22 21:26:05 +01:00
Jeetaditya Chatterjee
e3b5798a58
docs(tree-sitter): mention goto 2022-05-22 21:26:05 +01:00
Jeetaditya Chatterjee
89f82428e6
feat(tree-sitter): goto functionality 2022-05-22 21:26:05 +01:00
Jeetaditya Chatterjee
75897af036
bump: :tools tree-sitter evil-textobj-tree-sitter
meain/evil-textobj-tree-sitter@08823ff972 -> meain/evil-textobj-tree-sitter@607b71f38a
2022-05-22 21:26:05 +01:00
Jeetaditya Chatterjee
4e870be9ab
docs(tree-sitter): add no text object found error 2022-05-22 21:26:04 +01:00
Jeetaditya Chatterjee
c1bea42fa0
bump: :tools tree-sitter
emacs-tree-sitter/elisp-tree-sitter@8bbbfa4fc5 -> emacs-tree-sitter/elisp-tree-sitter@48b06796a3
emacs-tree-sitter/tree-sitter-langs@86a894a617 -> emacs-tree-sitter/tree-sitter-langs@3c0c82f9fb
meain/evil-textobj-tree-sitter@4d79ea7121 -> meain/evil-textobj-tree-sitter@08823ff972

- This fixes the java issue where switch expressions were erroring,
- Roll back evil text obj tree sitter as ruby text objects became un
- usable, see https://github.com/emacs-tree-sitter/elisp-tree-sitter/issues/180
2022-05-22 21:26:04 +01:00
Jeetaditya Chatterjee
e01e58c773
docs(tree-sitter): add param to text obj table 2022-05-22 21:26:04 +01:00
Jeetaditya Chatterjee
7534ce8fa7
feat(tree-sitter): add parameter text object
this will replace evil-{inner,outer}-arg
2022-05-22 21:26:04 +01:00
Jeetaditya Chatterjee
e756d0b447
docs(tree-sitter): add m1 warning to readme
also fix small spelling mistake
2022-05-22 21:26:04 +01:00
Jeetaditya Chatterjee
1f5618f02b
docs(tree-sitter): add documentation sections
also add a line to the quote
2022-05-22 21:26:03 +01:00
Jeetaditya Chatterjee
6508579595
docs(tree-sitter): add docs for disabling text-obj
for certain modes, this also removes the hacks section as it was not
needed
2022-05-22 21:26:03 +01:00
Jeetaditya Chatterjee
2cd40f7aa7
fix(tree-sitter): properly gatekeep ts text objs
before today all text objects were bound in all modes, now they have
been properly gatekept and only appear when `+tree-sitter-keys-mode` is
enabled / hooked, this allows for more flexibility and the ability to
arbitrarily disable / enable tree sitter text objects (which is nice)
2022-05-22 21:26:03 +01:00
Jeetaditya Chatterjee
66012fb413
bump: :tools tree-sitter
emacs-tree-sitter/elisp-tree-sitter@4d9871d239 -> emacs-tree-sitter/elisp-tree-sitter@8bbbfa4fc5
emacs-tree-sitter/tree-sitter-langs@fa47b55f7b -> emacs-tree-sitter/tree-sitter-langs@86a894a617
meain/evil-textobj-tree-sitter@eedc1f5461 -> meain/evil-textobj-tree-sitter@4d79ea7121
2022-05-22 21:26:03 +01:00
Jeetaditya Chatterjee
2a7442da74
nit(tree-sitter): cleanup
remove dead lines
remove old code comments
add in hack... thingy?
2022-05-22 21:26:02 +01:00
Ellis Kenyo
f39fb3afc1
fix(tree-sitter): adjust description for textobjs
Reduce the length of the description for evil text objects
2022-05-22 21:26:02 +01:00
Jeetaditya Chatterjee
8d27b2bf90
nit(tree-sitter): remove outdated comments 2022-05-22 21:26:01 +01:00
Jeetaditya Chatterjee
400d8d4116
feat(tree-sitter): bind textobjects to maps
Instead of binding all of the tree sitter text objects to every map
we only bind them to modes in the major-mode-language-alist
2022-05-22 21:26:00 +01:00
Jeetaditya Chatterjee
3fdd688356
feat(tree-sitter): ts-langs eagar loads on daemon
as ts-langs is quite heavy it makes sense to eagar load it when in
daemon mode to make the experience smoother overall
2022-05-22 21:26:00 +01:00