nvim
+ treesitter
easy plugins

Who am I?

Warning!

Bad halloween jokes incoming

Relevant Terms

tree-sitter

tree sitter logo

https://tree-sitter.github.io/tree-sitter/

AST

Abstract Syntax Tree: representation of the abstract syntactic structure of text (often source code) written in a formal language. Each node of the tree denotes a construct occurring in the text.

https://en.wikipedia.org/wiki/Abstract_syntax_tree

lua

Portuguese for “moon”

  • interesting history
  • 1 indexed
  • similar syntax to js (let me explain)

lua/js (side by side)

JS to Lua diff

What would be the national holiday for a nation of vampires?

Fangs-giving!

Biscuits (history)

Inspiration

VSCode Flutter Plugin:

Flutter example

VSCode

https://code-biscuits.github.io/

https://github.com/code-biscuits/assorted-biscuits/

Thanks Teej

What do you call two witches sharing an apartment?

Broommates

Brief Examples

Rust

Lua

JS

Go

Biscuits (technical)

Init

Config

Options

Adding the Virtual Text

Highlight Groups

Treesitter (parser)

Treesitter (nodes)

Use the right hook

Dr. Frankenstein must have worked out all the time.

He was a bodybuilder, after all.

nvim plugins

API and Resources

General neovim docs

  • mention docs website

  • searching within neovim is preferred by many people

autocmd

https://neovim.io/doc/user/autocmd.html

tree-sitter

https://neovim.io/doc/user/treesitter.html

core api

https://neovim.io/doc/user/api.html

Other plugins

Smaller:

Larger:

Why didn’t the zombie like eating the clown?

He tasted funny.

Wrapping Up

Other editors?

Applause