Adjust package path
To support using require() for settings converted to lua modules
This commit is contained in:
parent
12437b5bcd
commit
22acd8bb5b
1 changed files with 6 additions and 2 deletions
8
init.lua
8
init.lua
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue