Skip to content

Commit

Permalink
Format with stylua
Browse files Browse the repository at this point in the history
  • Loading branch information
L3MON4D3 authored and github-actions[bot] committed Feb 14, 2024
1 parent dab3478 commit 7770d37
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/helpers.lua
Original file line number Diff line number Diff line change
Expand Up @@ -111,12 +111,15 @@ function M.session_setup_luasnip(opts)
]])

local version = exec_lua([[ return vim.version() ]])
local nvim_07_or_09 = (version.minor == 7 or version.minor == 9) and version.major == 0
local nvim_07_or_09 = (version.minor == 7 or version.minor == 9)
and version.major == 0
if nvim_07_or_09 then
-- 0.7 and 0.9 need a different parser than master :/
-- (actually, master has a lua-parser built-in, so we don't need to
-- load one at all in that case :) )
exec_lua([[ts_lang_add("lua", os.getenv("LUASNIP_SOURCE") .. "/tests/parsers/lua_07_09.so")]])
exec_lua(
[[ts_lang_add("lua", os.getenv("LUASNIP_SOURCE") .. "/tests/parsers/lua_07_09.so")]]
)
end
end

Expand Down

0 comments on commit 7770d37

Please sign in to comment.