Skip to content

Commit 86a0b64

Browse files
committed
fix(ci): add workaround for undo_ftplugin error
1 parent a57529b commit 86a0b64

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232

3333
- name: Setup vusted
3434
run: |
35-
luarocks install vusted 2.3.4-1
35+
luarocks install vusted
3636
3737
- name: Run functional tests
3838
env:

test/unit/reader_spec.lua

+2
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,8 @@ describe('Snippet reader', function()
111111
local total_failed = {}
112112
local count = 0
113113
for _, scope in ipairs(scopes) do
114+
-- Workaround for when there is no undo_ftplugin set
115+
vim.b.undo_ftplugin = vim.b.undo_ftplugin or ''
114116
vim.cmd('set filetype=' .. scope)
115117
local snips = snippy.snippets
116118
assert.is_not.equal(nil, snips[scope])

0 commit comments

Comments
 (0)