Refactor plugin layout, add AI autocomplete and direnv, update docs

This commit is contained in:
RingOfStorms (Joshua Bell) 2026-01-22 16:54:45 -06:00
parent 3517caecde
commit cc9a5dc0f5
20 changed files with 1195 additions and 414 deletions

View file

@ -4,8 +4,8 @@ local function script_path()
end
-- Extract the directory name from the script path
local directory_name = script_path():match(".*/(.*)/")
for _, file in ipairs(vim.fn.readdir(script_path(), [[v:val =~ '\.lua$']])) do
if file ~= "init.lua" then
for _, file in ipairs(vim.fn.readdir(script_path())) do
if file ~= "init.lua" and file:match("%.lua$") then
local neighbor = string.sub(file, 0, -5)
require(directory_name .. "." .. neighbor)
end