raichoo, to neovim
@raichoo@chaos.social avatar

More #neovim spring cleaning 🧹 Replaced the trusty vim-commentary with Comment.nvim. It's context aware and can use #treesitter to determine the correct commentstring for injected languages. 👍 https://github.com/numToStr/Comment.nvim

raichoo, to neovim
@raichoo@chaos.social avatar

Just switched to using on for highlighting. Gamechanger 🤯

thelastpsion, to neovim
@thelastpsion@bitbang.social avatar

Thoughts on 3 months of usage (in ):

  • Easy to pick up and read
  • Good libraries
  • Generics
  • No closures
  • Binaries aren't small
  • LSP (pasls) isn't complete, but better than nothing; + really help
  • Docs are frustrating
  • Good forums/community
  • Targets SO MANY platforms (, 32-bit , , , )! More than Rust, Go
  • A lot of historic books and projects

Would I use again? Absolutely yes, without doubt.

HaraldKi, to emacs German
@HaraldKi@nrw.social avatar

I am having the same question: How and work together in an editor?

The answers given are so la la.

Can anyone add more insight? Would it make sense to let tree-sitter ask the language server for the ast?

Asking, because I am working on semantic token fontification for and not using treesitter.

https://github.com/tree-sitter/tree-sitter/issues/2149

thelastpsion, to neovim
@thelastpsion@bitbang.social avatar

It's taken me a couple of hours to get an for working in on Linux, but we're there!

I will document this (I need to do it again for the laptop), but in short:

  • Install Lazarus 3.0.0 beta
  • Get latest Lazarus trunk source
  • git clone the LSP source
  • Fix an issue with LSP source that's in an unmerged pull request
  • Build the LSP as per README
  • Set a couple of env variables
  • Copy the pasls binary to your path
  • Add zero-lsp.nvim plugin
  • enable pasls in zero-lsp config
thelastpsion,
@thelastpsion@bitbang.social avatar
hywan, to random
@hywan@fosstodon.org avatar

difftastic, https://github.com/Wilfred/difftastic.

Difftastic is a CLI diff tool that compares files based on their syntax, not line-by-line. Difftastic produces accurate diffs that are easier for humans to read.

It supports many languages and is compatible with Git.

It ignores formatting changes.
Visualise wrapping changes.

jamessan, to neovim

#Neovim in #Debian is finally updated past the 0.7.2 release (up to 0.9.4) 🎉

It's been a long time coming, and it's just in experimental for now.

The long pole, aside from ENOTIME, was introducing the #treesitter ecosystem to Debian. That took a bit longer than I was expecting, and I'm still not happy with how it looks. I've started poking around at debhelper tooling to simplify this, since the packaging is pretty repetitive for treesitter grammars.

achim, to neovim
@achim@social.saarland avatar

Just started to write a blog post about my and adventures and figured out even this works: Sql inside inside Markdown. And the highlighting is still correct.

achim,
@achim@social.saarland avatar

Here is the article: https://blog.achims.world/tree-sitter-adventures-language-injections.html

Please be aware that I don't like writing. If something is unclear or missing, just ask. I'll try to improve.

fd9a, to emacs
@fd9a@fosstodon.org avatar

What should be the rule for treesit-font-lock-rules to highlight a dts
node label?

The following doesn't work:

:language 'devicetree
:override t
:feature 'label
`((labeled_item
item:
(node name: (identifier) @font)))
https://git.sr.ht/~akagi/devicetree-ts-mode/tree/master/item/devicetree-ts-mode.el#L101

brokenix, to random
@brokenix@emacs.ch avatar
pulsaredit, to foss
@pulsaredit@fosstodon.org avatar

Last time I laid out the case for why we chose to embrace TextMate-style scope names, even in newer Tree-sitter grammars. I set a difficult challenge for Pulsar: make it so that a Tree-sitter grammar can do anything a TextMate grammar can do.

Today, I'd like to show you the specific problems that we had to solve in order to pull that off.

https://pulsar-edit.dev/blog/20231013-savetheclocktower-modern-tree-sitter-part-3.html

thelastpsion, to neovim
@thelastpsion@bitbang.social avatar

update. The discovery of registers has made me very happy. Macros are saving me a lot of time!

I'm slowly improving my speed with movements. It's also forcing me to address some bad typing habits of mine.

support using vim-asciidoctor is better than the built-in syntax highlighting, but it's still mediocre and breaks. In an ideal world there would be a parser for it, but I don't know if I have the energy/skill to work on that.

dekkzz76, to tcl
@dekkzz76@emacs.ch avatar
abcdw, to emacs
@abcdw@fosstodon.org avatar

Update on tree-sitter structure navigation in emacs mailing list:

https://lists.gnu.org/archive/html/emacs-devel/2023-09/msg00130.html

einenlum, to neovim French
@einenlum@fosstodon.org avatar

Does someone know a good introduction to colorschemes with support?

lambdageek, to emacs
@lambdageek@mastodon.social avatar

Is anyone using the tree-sitter based C/C++ modes in Emacs 29 and working with codebases that use "weird" indentation styles? It seems like they only support "gnu, k&r, bsd and linux" - and none of those match what I'm up against, exactly.

Is there any benefit actually to using tree-sitter? I don't notice any obvious differences in syntax highlighting or anything...

ardmore,

@lambdageek I am planning to use tree-sitter for C++ as well, but my first attempts also failed due to different indentation from what I have configured for the standard C++ mode. In the meantime however I read somewhere that there are ways to adjust indentation rules for the tree-sitter modes, but I didn't find the time yet to investigate in more depth.

ctietze, to markdown
@ctietze@mastodon.social avatar

I don't understand how I get with in 29.1 -- I can install the grammar, but there's no `markdown-ts-mode'.

The package treesit-auto.el' seems to define this with the magic of make-treesit-auto-recipe', but I don't see this declared anywhere.

Does anyone have a markdown-ts-mode?

bp, to RegEx

regexplainer, the plugin which tells you what your is doing, now has long-awaited support for lookbehind assertions, thanks to the fixes in the upstream parser

Give'r a shot and let me know what you think

https://github.com/bennypowers/nvim-regexplainer/pull/39

bp, to webdev

Use 's and APIs to script a function that toggles between and image synax (https://bennypowers.dev/posts/markdown-images-treesitter/)

abcdw, to random
@abcdw@fosstodon.org avatar

Arghhh, guile-commonmark doesn't support raw html
https://github.com/OrangeShark/guile-commonmark/issues/8

abcdw,
@abcdw@fosstodon.org avatar

Do someone with Guile FFI experience want to help me to get started with guile-tree-sitter? (:

Just share some FFI best practices and/or highlight overall direction/approach will be enough.

rml, to random
@rml@functional.cafe avatar

Many people seem to agree that part of what makes #git (& #dvcs in general) so difficult to get a really effective handle on is that applying patches is a lot like working with pre-processor macros (ie #define in #C), and that there oughta be a more well-bounded, lexically concise means of code collaboration to establish. But the only work I've seen in this direction is Arun Isaac's tree-diff[1]. #TreeSitter[2] seems like a tool that can greatly ease experimentation in this direction, but what other work has been done on this problem?

[1] https://archive.fosdem.org/2021/schedule/event/sexpressiondiff/ #fosdem
[2] https://tree-sitter.github.io/tree-sitter/

#guix #forgefed #vcs

  • All
  • Subscribed
  • Moderated
  • Favorites
  • megavids
  • rosin
  • ngwrru68w68
  • Durango
  • DreamBathrooms
  • mdbf
  • magazineikmin
  • thenastyranch
  • Youngstown
  • khanakhh
  • slotface
  • everett
  • vwfavf
  • kavyap
  • provamag3
  • osvaldo12
  • GTA5RPClips
  • ethstaker
  • tacticalgear
  • InstantRegret
  • cisconetworking
  • cubers
  • tester
  • anitta
  • modclub
  • Leos
  • normalnudes
  • JUstTest
  • All magazines