Comments (8)
Yea, feel free to make a PR and I'll merge. I'm not familiar with Julia so I personally won't be putting up a fix.
cc @timoleistner who originally added Julia support.
from nvim-treesitter-textsubjects.
Since it's been a while and @ArbitRandomUser did not create a pull request, I've done it.
Sadly, I can't test this as I get the following error when I try to use smart textsubjects:
E5108: Error executing lua /usr/share/nvim/runtime/lua/vim/treesitter/query.lua:259: query: invalid node type at posit
ion 2 for language julia
stack traceback:
[C]: in function '_ts_parse_query'
/usr/share/nvim/runtime/lua/vim/treesitter/query.lua:259: in function 'get_query'
.../nvim/lazy/nvim-treesitter/lua/nvim-treesitter/query.lua:108: in function 'get_query'
.../nvim/lazy/nvim-treesitter/lua/nvim-treesitter/query.lua:201: in function 'prepare_query'
.../nvim/lazy/nvim-treesitter/lua/nvim-treesitter/query.lua:397: in function 'iter_group_results'
.../nvim/lazy/nvim-treesitter/lua/nvim-treesitter/query.lua:320: in function 'get_capture_matches'
.../nvim/lazy/nvim-treesitter/lua/nvim-treesitter/query.lua:445: in function 'fn'
/usr/share/nvim/runtime/lua/vim/treesitter/languagetree.lua:345: in function 'for_each_tree'
.../nvim/lazy/nvim-treesitter/lua/nvim-treesitter/query.lua:440: in function 'get_capture_matches_recursively'
...sitter-textsubjects/lua/nvim-treesitter/textsubjects.lua:111: in function 'select'
[string ":lua"]:1: in main chunk
This does happen no matter where I do this in my code.
Please let me know if I should create a separate issue or if you need more information.
from nvim-treesitter-textsubjects.
E5108: Error executing lua /usr/share/nvim/runtime/lua/vim/treesitter/query.lua:259: query: invalid node type at posit
ion 2 for language julia
That would indicate your Julia parser may be out of date.
from nvim-treesitter-textsubjects.
fixed it :)
from nvim-treesitter-textsubjects.
was waiting for you to chime in @timoleistner, your fix is neat and more comprehensive than mine.
Thanks :)
from nvim-treesitter-textsubjects.
Related Issues (16)
- is there any way to match the inner part of string literals by using tressitter? HOT 4
- Documentation for `#make-range`? HOT 2
- Quantifiers `*` and `+`? HOT 1
- Python class/function textobjects should include decoraters HOT 3
- Avoiding putting the cursor on different lines after textsubjects-smart? HOT 1
- BUG: Vanilla vim motion for repeating f/t operation etc... stops working in visual mode HOT 1
- Adding keymap descriptions HOT 2
- support textsubjects-smart-inner HOT 1
- Probably stupid question HOT 1
- `nvim-treesitter.ts_utils` deprecation warning HOT 6
- Mappings are not triggered HOT 2
- Elegant fallback to incremental selection? HOT 1
- A text-subject mapping jupyter cell divider pattern: #%% HOT 1
- no such mapping `nvim_buf_del_keymap` in `yaml` files HOT 2
- Undo support HOT 1
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-textsubjects.