fix: add after directories to rtp to make after/ftplugin and others work. Fixes #47

This commit is contained in:
Folke Lemaitre 2022-12-20 23:35:06 +01:00
parent b193f96f7b
commit 3606d62918
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040
2 changed files with 18 additions and 24 deletions

View file

@ -179,7 +179,7 @@ function M.get_rtp()
end
for _, path in ipairs(vim.api.nvim_list_runtime_paths()) do
path = path:gsub("\\", "/")
if not skip[path] then
if not skip[path] and not path:find("after/?$") then
M.rtp[#M.rtp + 1] = path
end
end