Skip to content

Commit 95f5c20

Browse files
committed
chore(util): fix unit tests on nightly
Seems like nightly returns text as the type for .txt files which breaks our tests
1 parent 648947a commit 95f5c20

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
@@ -372,6 +372,7 @@ function M.get_markdown_filetype(filename)
372372
typescriptreact = 'tsx',
373373
sh = 'bash',
374374
yaml = 'yml',
375+
text = 'txt', -- nvim 0.12-nightly returns text as the type which breaks our unit tests
375376
}
376377

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

0 commit comments

Comments
 (0)