You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 17, 2024. It is now read-only.
TSPlayground doesn't show anything for my jdummy language which is a JSON duplicate.
I created this dummy language by copying the JSON grammar and changing its name to jdummy in its grammar.js as shown below.
I can see the pars tree after running: tree-sitter parser example.jdummy,
but I don't see anything in the Playgound.
Am I missing anything?
1- mkdir tree-sitter-jdummy
2- copied the grammar.js of JSON and changed its name to jdummy
3- cd tree-sitter-jdummy
4- update my config file in ~/.config/nvim/init.vim
lua <<EOF
local parser_config = require "nvim-treesitter.parsers".get_parser_configs()
parser_config.jdummy= {
install_info = {
url = "~/src/tree-sitter-jdummy", -- local path or git repo
files = {"src/parser.c"},
branch = 'main'
},
filetype = "jdummy", -- if filetype does not agrees with parser name
}
EOF
Still doesn't work.
From the original JSON folder, I copied the queries folder which contains highlights.scm, and did all the steps again,
but still see the same problem.
TSPlayground
doesn't show anything for myjdummy
language which is a JSON duplicate.I created this dummy language by copying the JSON grammar and changing its name to
jdummy
in itsgrammar.js
as shown below.I can see the pars tree after running:
tree-sitter parser example.jdummy
,but I don't see anything in the Playgound.
Am I missing anything?
1-
mkdir tree-sitter-jdummy
2- copied the
grammar.js
of JSON and changed its name tojdummy
3-
cd tree-sitter-jdummy
4- update my config file in
~/.config/nvim/init.vim
5-
tree-sitter generate
6-
tree-sitter test
7-
nvim ~/.config/nvim/init.vim
=>:TSInstall jdummy
8-
nvim example.jdummy
=>:TSPlayground
The text was updated successfully, but these errors were encountered: