Compare commits

..

4 Commits

Author SHA1 Message Date
eda9c78923
Merge pull request #1 from ydalton/fork
Add Blade filetype
2024-05-13 09:59:25 -05:00
715d5b8efa
ci: use neovim nightly 2024-05-13 09:57:32 -05:00
965e8f905e
test: overhaul test setup and make commands 2024-05-13 09:47:27 -05:00
Yussef Dalton
c54af24ea9 Add Blade filetype
The only thing that's missing is it doesn't indent properly when you
close a tag, but otherwise it closes properly.
2024-05-13 12:55:00 +02:00
3 changed files with 4 additions and 9 deletions

View File

@ -256,13 +256,6 @@ local function find_tag_node(opt)
local name_tag_pattern = opt.name_tag_pattern
local skip_tag_pattern = opt.skip_tag_pattern
local find_child = opt.find_child or false
--- PERF: Some parsers don't seemingly pick up their trees correctly, so we have to reparse the
--- entire source. This is slow, see if we can avoid this.
if target and target:has_changes() then
local parser = vim.treesitter.get_parser()
_ = (parser and parser:parse(true) or nil)
target = ts_utils.get_node_at_cursor()
end
local node
if find_child then
node = find_child_match({

View File

@ -1,5 +1,4 @@
require("tests.minimal_init")
---@type string
local test_file = vim.v.argv[#vim.v.argv]
if test_file == "" or not test_file:find("tests/specs/", nil, true) then
@ -7,6 +6,10 @@ if test_file == "" or not test_file:find("tests/specs/", nil, true) then
end
print("[STARTUP] Running all tests in " .. test_file)
vim.cmd([[
]])
require("plenary.test_harness").test_directory(test_file, {
minimal_init = "tests/minimal_init.lua",
sequential = true,

View File

@ -37,7 +37,6 @@ end
M.setup_nvim_treesitter = function(opts)
opts = vim.tbl_deep_extend("keep", opts or {}, {
sync = true,
ensure_installed = {
"html",
"javascript",