We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent be9caf5 commit 9e2ae2fCopy full SHA for 9e2ae2f
nvim/.config/nvim/lua/plugins/init.lua
@@ -16,11 +16,10 @@ local function load_plugin_specs()
16
local specs = {}
17
local loaded = {}
18
local curr_script_dir = vim.fs.dirname(debug.getinfo(2, "S").source:sub(2))
19
- local files = vim.split(vim.fn.glob(curr_script_dir .. "/*", true), "\n")
20
21
-- Load all plugins in plugins/ directory automatically.
22
- for _, file in ipairs(files) do
23
- local basename = vim.fs.basename(file):match("(_.*).lua$")
+ for file in vim.fs.dir(curr_script_dir) do
+ local basename = file:match("(_.*).lua$")
24
25
if basename and basename ~= "init" then
26
---@type LazyPluginSpec
0 commit comments