mirror of
https://github.com/pnx/tree-sitter-dotenv
synced 2026-08-15 12:58:12 +02:00
| .. | ||
| init-main.lua | ||
| init-master.lua | ||
| README.md | ||
Neovim test configs
This directory contains minimal Neovim configs for testing tree-sitter-dotenv with both
legacy and rewritten nvim-treesitter.
Files
init-main.lua→nvim-treesittermain(new API)init-master.lua→nvim-treesittermaster(legacy API)
Run
From the repository root, use isolated app names so test state does not mix:
NVIM_APPNAME=ts-dotenv-main nvim -u "$(pwd)/test/nvim/init-main.lua"
NVIM_APPNAME=ts-dotenv-master nvim -u "$(pwd)/test/nvim/init-master.lua"
Install parser
Run:
:TSUpdate
:TSInstall dotenv
Verify
Open a .env file and check:
:echo &filetype
Expected output: dotenv.
Show the syntax tree
:InspectTree