![]() Is true that both treesitter and language servers parse the code at the same time, but that's also what we do right now, except we do it with regular expressions. Should I have to set up a markdown LSP? I'm sure writing a grammar is easier than creating an LSP, and I'd be surprised if communicating through json messages didn't put LSPs at a performance disadvantage compared to tree-sitter's C library. Just yesterday I was editing a 500-lines markdown file and the highlighting of fenced code blocks kept messing up (it couldn't tell whether a triple backtick was the start or the end of a block), so I'll take whatever improvement over this. The advantage of regex vs treesitter is that it can work on just a portion of the file instead of needing the entire file (or worse, entire translation unit).ĭoes it matter if the result then is wrong, and if tree-sitter can parse the whole file quickly enough anyway? Also I'd be surprised if it didn't have a way to operate on a part of the file and still do its job properly, considering it's made to incrementally modify the syntax tree on every keystroke, which means most of the time it has to cope with invalid syntax. And please those of you who deign to grace us with your vim wisdom - be kind. Vim Awesome: list of popular vim plugins.ĭon't be afraid to ask questions, this sub is here for the vim community.Learn Vimscript the Hard Way: is a book for users of the Vim editor who want to learn how to customize Vim.Derek Wyatt's Vim tutorial videos: video tutorials by Derek Wyatt's.Vimcasts: screencasts by the author of practical vim.7 habits of effective text editing: a short guide on getting better at editing by the Vim author.usevim: a vim blog with some great outbound links.Patrick Schanen's Vim Page: an index of vim resources more complete than this list.vi.: questions and answers stackexchange style.: the most popular vim wiki, lots of great content.Vim Mac Mailing List: low volume mac specific list.Vim Dev Mailing List: high volume dev list.Vim Use Mailing List: high volume user support list.Vim Announcements Mailing List: low volume announcement list.Our Wiki!: Let me know if you want to be a contributor.#vim on freenode: 1000+ person reasonably active IRC channel.Vim user manual (PDF): 341 pages (extracted from full help linked below).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |