Refresh generated nvim config
This commit is contained in:
@ -0,0 +1,30 @@
|
||||
-- Need the absolute path as when doing the testing we will issue things like `tcd` to change directory
|
||||
-- to where our temporary filesystem lives
|
||||
local root_dir = vim.fn.fnamemodify(vim.trim(vim.fn.system("git rev-parse --show-toplevel")), ":p")
|
||||
|
||||
package.path = string.format("%s;%s?.lua;%s?/init.lua", package.path, root_dir, root_dir)
|
||||
|
||||
vim.opt.packpath:prepend(string.format("%s", root_dir .. ".testcache/site"))
|
||||
|
||||
vim.opt.rtp = {
|
||||
root_dir,
|
||||
vim.env.VIMRUNTIME,
|
||||
}
|
||||
|
||||
vim.cmd([[
|
||||
filetype on
|
||||
packadd plenary.nvim
|
||||
packadd nui.nvim
|
||||
packadd nvim-web-devicons
|
||||
]])
|
||||
|
||||
vim.opt.swapfile = false
|
||||
|
||||
vim.cmd([[
|
||||
runtime plugin/neo-tree.vim
|
||||
]])
|
||||
|
||||
-- For debugging
|
||||
P = function(...)
|
||||
print(unpack(vim.tbl_map(vim.inspect, { ... })))
|
||||
end
|
||||
Reference in New Issue
Block a user