Skip to content

Commit 313acb8

Browse files
cameronrsudo-tee
authored andcommitted
chore(util): fix unit tests on nightly
Seems like nightly returns text as the type for .txt files which breaks our tests
1 parent 7795912 commit 313acb8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lua/opencode/util.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -400,6 +400,7 @@ function M.get_markdown_filetype(filename)
400400
typescriptreact = 'tsx',
401401
sh = 'bash',
402402
yaml = 'yml',
403+
text = 'txt', -- nvim 0.12-nightly returns text as the type which breaks our unit tests
403404
}
404405

405406
local file_type = vim.filetype.match({ filename = filename }) or ''

0 commit comments

Comments
 (0)