Skip to content

Commit

Permalink
feat(autocmds): attach jest commands to *spec.ts/tsx files
Browse files Browse the repository at this point in the history
  • Loading branch information
ecosse3 committed Jul 21, 2024
1 parent 830e804 commit 89709b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/config/autocmds.lua
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ vim.api.nvim_create_autocmd("FileType",
end
end
})
vim.api.nvim_create_autocmd("BufEnter", { pattern = { "*test.js", "*test.ts", "*test.tsx" },
vim.api.nvim_create_autocmd("BufEnter", { pattern = { "*test.js", "*test.ts", "*test.tsx", "*spec.ts", "*spec.tsx" },
callback = function() pwk.attach_jest(0) end })
vim.api.nvim_create_autocmd("FileType", { pattern = "spectre_panel",
callback = function() pwk.attach_spectre(0) end })
Expand Down

0 comments on commit 89709b6

Please sign in to comment.