Adjust package path

To support using require() for settings converted to lua modules
This commit is contained in:
Thomas Gideon 2024-06-29 09:50:52 -04:00
parent 12437b5bcd
commit 22acd8bb5b

View file

@ -1,13 +1,17 @@
local vimrc_git = os.getenv("HOME") .. "/src/vimrc"
-- add to package path to allow use of require() for lua modules
package.path = string.format("%s;%s?.lua", package.path, vimrc_git.."/")
-- it is a big fat key, after all
-- N.B. should come before plugins and plugin specific settings
vim.g.mapleader = ' '
vim.cmd("source " .. vimrc_git .. "/plug.lua")
require("plug")
--vim.cmd("source " .. vimrc_git .. "/plug.lua")
vim.cmd("source " .. vimrc_git .. "/airline.vim")
vim.cmd("source " .. vimrc_git .. "/lsp.vim")
vim.cmd("source " .. vimrc_git .. "/mapping.lua")
require("mapping")
--vim.cmd("source " .. vimrc_git .. "/mapping.lua")
vim.cmd("source " .. vimrc_git .. "/fzf.vim")
vim.cmd("source " .. vimrc_git .. "/jsonnet.vim")
vim.cmd("source " .. vimrc_git .. "/nerdtree.vim")