mirror of https://github.com/zpl-zak/nvimrc
Fix relative paths to configs
parent
b216bc031e
commit
4c420826b3
|
@ -1,14 +1,14 @@
|
||||||
-- load lazy package manager
|
-- load lazy package manager
|
||||||
require('configs.lazy')
|
require('zak.configs.lazy')
|
||||||
|
|
||||||
-- load configs
|
-- load configs
|
||||||
local config_path = vim.fn.stdpath("config") .. "/lua/zak/configs"
|
local config_path = vim.fn.stdpath("config") .. "/lua/zak/configs"
|
||||||
for _, file in ipairs(vim.fn.readdir(config_path, [[v:val =~ '\.lua$']])) do
|
for _, file in ipairs(vim.fn.readdir(config_path, [[v:val =~ '\.lua$']])) do
|
||||||
if file ~= "lazy.lua" then
|
if file ~= "lazy.lua" then
|
||||||
require("configs."..file:gsub("%.lua$", ""))
|
require("zak.configs."..file:gsub("%.lua$", ""))
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
-- load options
|
-- load options
|
||||||
require('options')
|
require('zak.options')
|
||||||
require('keymap')
|
require('zak.keymap')
|
||||||
|
|
Loading…
Reference in New Issue