1
0
Fork 0
mirror of https://github.com/pnx/tree-sitter-dotenv synced 2026-08-15 12:58:12 +02:00
tree-sitter-dotenv/test/nvim
2026-07-15 23:24:39 +02:00
..
init-main.lua test(nvim): add minimal main/master configs 2026-07-15 08:12:20 +02:00
init-master.lua test(nvim): add minimal main/master configs 2026-07-15 08:12:20 +02:00
README.md docs: link to config files in test/nvim/README.md 2026-07-15 23:24:39 +02:00

Neovim test configs

This directory contains minimal Neovim configs for testing tree-sitter-dotenv with both legacy and rewritten nvim-treesitter.

Files

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