From c6c2d25cb561946e993e5dc5919afed8017cd087 Mon Sep 17 00:00:00 2001 From: Sacha Chua Date: Thu, 8 Dec 2022 20:18:23 -0500 Subject: add etherpads to wiki pages --- 2022/talks/treesitter.md | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) (limited to '2022/talks/treesitter.md') diff --git a/2022/talks/treesitter.md b/2022/talks/treesitter.md index 9e053ff5..1cad68c4 100644 --- a/2022/talks/treesitter.md +++ b/2022/talks/treesitter.md @@ -34,6 +34,45 @@ This session will introduce them to things like (not final list): - Some useful tree-sitter functions: tree-sitter-save-excursion +# Discussion + +## Notes + +- The speaker\'s blog: +- Fancy Narrow: +- Text objects using tree-sitter in evil-mode: + +- Notes/Slides: + +## Questions and answers + +- Q: What treesitter package is being used I think there is 3 + different ones + - A:  Most of what is demoed here is using + +- Q: Can the folds be treated as outlines as in outline-minor-mode + folds? + - A: I don\'t think the package ts-fold which I showcased works + with outline mode, but it should be simple enough to add + something like that + () +- Q: Is there any benefit to use tree-sitter for sexp-based languages? + +1 + - A: Being able to query for specific things like variables / + conditions might come in handy +- Q:Do you have to have an LSP set up in order to use tree-sitter? + - A:I still use eglot for lsp. While tree-sitter help with + highlighting, folding, nav etc . . tree-sitter can be more + thought of to be working on a single file. So when I need to do + project wide things like jump to defenition, find reference or + renames lsp comes in handy. +- Q: Is there any example configuration for the transition from + traditional major mode to new \*-ts-major-mode? It seems that + configuration of major mode (xxx-mode-hook, yasnippet, etc) has to + been rewritten + - A: I am just starting to work with builtin tree-sitter, so + don\'t have much input here  unfortunately :( + [[!inline pages="internal(2022/info/treesitter-after)" raw="yes"]] -- cgit v1.2.3