Skip to content

Commit

Permalink
fix: don't include cwd in package.path
Browse files Browse the repository at this point in the history
  • Loading branch information
aarondill committed Nov 4, 2024
1 parent 8689ac3 commit d483b2a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ if vim.fn.has("nvim-0.9.0") == 0 then
return
end

---Remove . from the package.path. This never does anything good.
package.path = package.path:gsub("^%./%?%.lua;", "")
package.cpath = package.cpath:gsub("^%./%?%.so;", "")

require("future") -- Fowards compatability

do -- delay notifications till vim.notify was replaced or after 500ms
Expand Down

0 comments on commit d483b2a

Please sign in to comment.