lunarymacs
evil-textobj-tree-sitter
lunarymacs | evil-textobj-tree-sitter | |
---|---|---|
5 | 12 | |
233 | 184 | |
- | - | |
8.1 | 6.2 | |
12 days ago | 15 days ago | |
Emacs Lisp | Scheme | |
- | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
lunarymacs
- lunarymacs: casouri's Emacs configuration
-
The benefits of everything (in Emacs) being a buffer
He's also behind expand-region! (Although, I've started experimenting with the much-smaller treesitter-based https://github.com/casouri/lunarymacs/blob/master/site-lisp/...)
I'm pretty sure when he wrote all of that stuff that he'd only been using Emacs for around a year. The benefit of someone that talented, or groks Emacs immediately, and is familiar enough with the outside-ecosystem to know what he wants to borrow, I suppose.
- expreg.el --- Simple expand region
-
Tree-sitter starter guide
I'm also a diehard expand-region user! I believe a less precise but super simple command is better than a precise but complicated one. IMO expand-region > text objects, forward/backward-sexp/word > avy / other fancy navigation tool. But I digress. For tree-sitter aware expand-region, this is what I'm using: https://github.com/casouri/lunarymacs/blob/master/site-lisp/expreg.el
-
[ANN] info-variable-pitch: View Info with proportional fonts while keeping (most of) what needs to be monospace in mono
You can find my attempt here, I used some ad-hoc parsing instead of regexp, and I didn't use font-lock. https://github.com/casouri/lunarymacs/blob/master/site-lisp/info-pretty.el
evil-textobj-tree-sitter
-
Let's write an Emacs treesitter major mode
You may be aware but the author of TFA also has a tree-sitter based minor mode called Combobulate for exactly that:
https://www.masteringemacs.org/article/combobulate-structure...
There is also evil-textobj-tree-sitter for tree-sitter based text objects for Evil mode:
https://github.com/meain/evil-textobj-tree-sitter
-
How to Get Started with Tree-Sitter
here are the structural editing tools, and they're great - https://github.com/meain/evil-textobj-tree-sitter
- evil-textobj-tree-sitter: Tree-sitter powered textobjects for evil mode in Emacs
-
Tree-sitter starter guide
evil-mode users already have options, and there seems to be a new package with general applicability too.
-
Best packages to use with evil mode .
evil-textobj-tree-sitter: provides new textobjects to evil-mode, thanks to treesitter
-
Are we living in the golden age of Emacs?
I have a package which lets you target language level constructs like functions, classes, conditionals etc for text objects using tree-sitter. This is specific to evil mode as of now, though making it work outside evil would not be that big an effort. https://github.com/meain/evil-textobj-tree-sitter
-
Tree Sitter and the Complications of Parsing Languages
Other than combobulate, these packages also use tree-sitter for changing code (not just highlighting): * https://codeberg.org/FelipeLema/tree-sitter-indent.el * https://github.com/meain/evil-textobj-tree-sitter
-
Using tree-sitter to create better snippets
this might interest you: https://github.com/meain/evil-textobj-tree-sitter
-
The State of Structural Editing in Emacs?
not lsp, treesitter is the way to go. lsp does not provide AST ATM. There is already https://github.com/meain/evil-textobj-tree-sitter . As a side note, smartparens work on non-lispy code. I am very happy with using in combination with evil-cleverparens.
What are some alternatives?
puni - Structured editing (soft deletion, expression navigating & manipulating) that supports many major modes out of the box.
doom-emacs - An Emacs framework for the stubborn martian hacker [Moved to: https://github.com/doomemacs/doomemacs]
elisp - A relic of the past.
combobulate - Structured Editing and Navigation in Emacs with Tree-Sitter
Emacs-wgrep - Writable grep buffer and apply the changes to files
lispy - Short and sweet LISP editing
exwm - Emacs X Window Manager
nvim-gps - Simple statusline component that shows what scope you are working inside
straight.el - 🍀 Next-generation, purely functional package manager for the Emacs hacker.
things.el - Extensions to thingatpt.el
haskell-ts-mode - Emacs major mode for Haskell tree-sitter support.
gopcaml-mode