mirror of
https://github.com/smoka7/hop.nvim.git
synced 2026-07-22 13:26:49 -04:00
14 lines
433 B
Lua
14 lines
433 B
Lua
local plenary_dir = os.getenv('PLENARY_DIR') or '/tmp/plenary.nvim'
|
|
local is_not_a_directory = vim.fn.isdirectory(plenary_dir) == 0
|
|
if is_not_a_directory then
|
|
vim.fn.system({ 'git', 'clone', 'https://github.com/nvim-lua/plenary.nvim', plenary_dir })
|
|
end
|
|
|
|
vim.opt.swapfile = false
|
|
vim.opt.rtp:append('.')
|
|
vim.opt.rtp:append('./tests')
|
|
vim.opt.rtp:append(plenary_dir)
|
|
|
|
vim.cmd('runtime plugin/plenary.vim')
|
|
require('plenary.busted')
|