tructure containing the user's tree-sitter config, parsed from
F<$HOME/.config/tree-sitter/config.json> if it exists. If there is no file
then C<undef> is returned.
This is usable as a class method.
sub treesitter_config
{
return $treesitter_config if $treesitter_config;
require JSON::MaybeUTF8;
# Same path search used by
# https://github.com/tree-sitter/tree-sitte
.json" : () ),
"$XDG_CONFIG_HOME/tree-sitter/config.json",
"$ENV{HOME}/.tree-sitter/config.json",
) {
next unless -f $path;
return $treesitter_config = JSON: