Skip to content

Commit

Permalink
feat(#7): implemented rtp init
Browse files Browse the repository at this point in the history
  • Loading branch information
quantumfate committed Aug 21, 2023
1 parent 8a63e6d commit 2a32303
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions init.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
local base_dir = vim.env.QUANTUMVIM_RTP_DIR
or (function()
local init_path = debug.getinfo(1, "S").source
return init_path:sub(2):match("(.*[/\\])"):sub(1, -2)
end)()

if not vim.tbl_contains(vim.opt.rtp:get(), base_dir) then
vim.opt.rtp:prepend(base_dir)
end

vim.loader.enable()

require("qvim.bootstrap"):init()
Expand Down

0 comments on commit 2a32303

Please sign in to comment.