Fix relative paths to configs

master
Dominik Madarász 2023-07-15 18:53:31 +02:00
parent b216bc031e
commit 4c420826b3
1 changed files with 4 additions and 4 deletions

View File

@ -1,14 +1,14 @@
-- load lazy package manager
require('configs.lazy')
require('zak.configs.lazy')
-- load configs
local config_path = vim.fn.stdpath("config") .. "/lua/zak/configs"
for _, file in ipairs(vim.fn.readdir(config_path, [[v:val =~ '\.lua$']])) do
if file ~= "lazy.lua" then
require("configs."..file:gsub("%.lua$", ""))
require("zak.configs."..file:gsub("%.lua$", ""))
end
end
-- load options
require('options')
require('keymap')
require('zak.options')
require('zak.keymap')