Comments (1)
The reason why I haven't implemented this is that we don't have a convincing story for feature detection with injected languages. It's easy to detect the available textobjects for the root language. But injected languages can be added to the document that have not been there when the document was created.
A solution could be to detect the languages that are available at attach and then add new mapping on injections. But it could be that we set a mapping even though only a small region of the document has the textdocument available. Maybe allow a fallback when no textobject is found for whatever reason?
from nvim-treesitter-textobjects.
Related Issues (20)
- nvim-treesitter.textobjects.repeatable_move is not found HOT 1
- Built in textobjects table is hard to read
- Assignment operator do not exist for c/cpp HOT 13
- Select Mode Keymaps appear broken HOT 2
- @inner.block @outer.block makes no sense in C I believe HOT 4
- Operator pending linewise mode override not observed for motions
- Extra text objects for latex: environments, maths, and sections HOT 1
- example "scope" ]s mapping seemingly does nothing
- Add `#make-range-between!`
- Error when opening haskell buffer. HOT 2
- flatten() requires a list-like table HOT 17
- Specify if query selects last line or not
- [main] recommended setup for swap doesn't work HOT 10
- bug: slow textobject select queries for Rust HOT 1
- @comment.inner not working as expected HOT 2
- JS's generator function not recognized
- [C#] class.outer should support classes, structs, records, and enums
- Swap @function.outer doesn't work from within decorated functions in Python HOT 2
- Elixir: functions with guard clauses or no params aren't registered
- Python: augmented_assignments
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nvim-treesitter-textobjects.