mirror of
https://github.com/LazyVim/starter.git
synced 2026-07-22 04:21:03 +00:00
lols
This commit is contained in:
parent
97f74a8068
commit
c6318bbc83
1 changed files with 1 additions and 1 deletions
|
|
@ -40,7 +40,7 @@ local function toggle_rb_spec()
|
|||
if vim.fn.expand("%:t"):match("_spec%.rb$") then
|
||||
vim.cmd("edit " .. vim.fn.expand("%:h"):gsub(test_dir, "app") .. "/" .. vim.fn.expand("%:t"):gsub("_" .. test_dir .. "%.rb$", ".rb"))
|
||||
else
|
||||
vim.cmd("edit " .. vim.fn.expand("%:h"):gsub("app", test_dir) .. "/" .. vim.fn.expand("%:t"):gsub("%.rb$", "_" .. test_dir .. ".rb"))
|
||||
vim.cmd("edit " .. vim.fn.expand("%:h"):gsub("^app", test_dir) .. "/" .. vim.fn.expand("%:t"):gsub("%.rb$", "_" .. test_dir .. ".rb"))
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue