diff --git a/config/nvim/ftplugin/lua.lua b/config/nvim/ftplugin/lua.lua new file mode 100644 index 0000000..7f5dd35 --- /dev/null +++ b/config/nvim/ftplugin/lua.lua @@ -0,0 +1,10 @@ +-- Eryn Wells + +local configPath = vim.fn.stdpath("config") +local fullPath = vim.fn.expand("%:p") + +if string.find(fullPath, "nvim/init.lua") then + local dirname = vim.fn.expand("%:p:h") + vim.opt.path:prepend(dirname) + vim.opt.path:prepend(dirname .. "/lua") +end