Refactor plugin layout, add AI autocomplete and direnv, update docs
This commit is contained in:
parent
3517caecde
commit
cc9a5dc0f5
20 changed files with 1195 additions and 414 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue