if not _G.test_close then return end local parser_config = require "nvim-treesitter.parsers".get_parser_configs() local ts = require 'nvim-treesitter.configs' local helpers = {} parser_config.rescript = { install_info = { url = "https://github.com/nkrkv/nvim-treesitter-rescript", files = {"src/parser.c", "src/scanner.c"}, branch = "main", }, maintainers = { "@nkrkv" }, filetype = "rescript", } ts.setup { ensure_installed = 'maintained', highlight = {enable = true}, } local eq = assert.are.same function helpers.feed(text, feed_opts) feed_opts = feed_opts or 'n' local to_feed = vim.api.nvim_replace_termcodes(text, true, false, true) vim.api.nvim_feedkeys(to_feed, feed_opts, true) end function helpers.insert(text) helpers.feed('a' .. text, 'x') end local data = { { name = "1 html close tag" , filepath = './sample/index.html', filetype = "html", linenr = 10, key = [[>]], before = [[