Comments (6)
Hey! The parser is already extracted here -- but ran into quite crippling tree-sitter issues with the size of the grammar. The queries that are in this repo could indeed be upstreamed, but I'm not really working on tree-sitter related support anymore until/unless the issues with tree-sitter-lean
are resolved. We anyways have semantic highlighting now in Lean's LSP, so there's slightly less of an incentive.
from lean.nvim.
The relevant (or at least what I recall was seemingly relevant sounding to me) upstream issue is tree-sitter/tree-sitter#693 (or tree-sitter/tree-sitter#1041)
from lean.nvim.
Essentially simply try to build the repo using tree-sitter generate
-- two things will happen -- it will take ages, and then also will produce a giant parser (.c file -- one that actually exceeds the GitHub size limits now for committing a file to a repository).
from lean.nvim.
This is off-topic, I know, but there are ways of keeping the parser size in check by being smarter about writing the grammar (which is an art, not a science). Some tips can be found here: https://github.com/tree-sitter/tree-sitter/wiki/Tips-and-Tricks-for-a-grammar-author
from lean.nvim.
Is there a repro of the tree-sitter-lean
issues?
from lean.nvim.
(I'm going to close this I think since I'm not sure there's anything to do in this repo specifically, but I'd be very glad for help if anyone is interested in it -- feel free to send whatever advice, PRs, or issues to the tree-sitter-lean
repo!)
from lean.nvim.
Related Issues (20)
- Cursor jumps around when infoview is open HOT 8
- neovim can freeze up / use 100% CPU when editing or navigating around Lean files HOT 5
- Correct way to quit neovim while the plugin is running HOT 2
- Distinguish \perp and \bot HOT 1
- checkhealth error: failed to run healthcheck for "lean" plugin HOT 1
- Find executable via `elan which` HOT 7
- Unicode LaTeX tab completion HOT 10
- Anonymous sections aren't treated as a pair HOT 1
- "Try this" replaces incorrect segment HOT 6
- Consider making the max width / height of infoviews work via percentages of real estate rather than columns/rows
- Improve `:Telescope loogle` HOT 1
- highlights.scm: @boolean -> @constant.builtin.boolean, @repeat -> @keyword.control.repeat HOT 4
- Help for a newbie HOT 3
- Client 1 quit with exit code 0 and signal 11 HOT 5
- Infoview autoclose HOT 1
- Musl usage error message HOT 4
- Inaccessible hypothesis highlighting should highlight inaccessible names even when there are alternate accessible ones
- (Re-)review / harmonize with the VSCode options
- Infoview tooltips should render their contents as markdown 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 lean.nvim.