The words Under construction in black text on a yellow background with diagonal black stipes surrounding it
I'm in the process of moving my site. It's still a work in progress. Please excuse the mess and broken links.

Magically Format Embedded Languages In Neovim - TJ DeVries (17min)

TL;DR

Very good video about how to use tree-sitter to find and manipulate text in Neovim.

Pretty sure this shows me just about everything I know in order to make executable code blocks in Neovim.

TODO: Pull subtitle into page object

Notes

Code
fn main() {
  println!("here)";
}
Code
print("asdf")

Debugging Stuff

I'm moving stuff around right now. All this below is helping me figure out where to put stuff

        -- title

Magically Format Embedded Languages In Neovim - TJ DeVries (17min)

-- tldr/

Very good video about how to use tree-sitter to find
and manipulate text in Neovim. 

Pretty sure this shows me just about everything I know
in order to make executable code blocks in Neovim. 

-- /tldr

-- notes

- Introduces :TSPlaygroundToggle

- Pressing "o" in TSPlayground opens a live query editor

- The queries are written in scheme

- The external tools just need to read from stdin 
and write to stdout in order to work with the lua 
process that gets set up

- Goes over a ton of details about how to set things
up. I'll do write ups of that stuff as I work through
the process

- At the end shows how to use the treesitter queries
to do injections. You don't need to do that in a parser, 
you can make injetions using the same queries
in your config under (e.g.) `queries/rust/injections.scm``


-- code
-- rust

fn main() {
  println!("here)";
}


-- code
-- python

print("asdf")

-- p




-- ref
-- url: https://github.com/nvim-treesitter/nvim-treesitter

-- ref
-- url: https://github.com/nvim-treesitter/playground

-- ref
-- url: https://www.twitch.tv/teej_dv



-- categories
-- Neovim 
-- Reviews

-- groups

-- metadata
-- date: 2023-10-19 00:36:05
-- id: 2wy1mekx
-- site: aws
-- type: review 
-- status: draft