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
|
||||
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')
|
||||
|
|
Loading…
Reference in New Issue