-
Notifications
You must be signed in to change notification settings - Fork 412
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug: Default Neovim plugins (such as matchparen & matchit) are not autoloading #306
Comments
What's the output of |
My actual Neovim is the packaged Neovim from the releases Github page. I take the official I don't believe I am doing anything weird or unusual. In Packer.nvim the |
Note, the
|
What is |
Empty string. |
you need to print it, like |
Ok, I needed to format it for you.
|
Can't reproduce this. What does local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
vim.fn.system({
"git",
"clone",
"--filter=blob:none",
"https://github.com/folke/lazy.nvim.git",
"--branch=stable",
lazypath,
})
end
vim.opt.rtp:prepend(lazypath)
local function rtp()
for _, p in ipairs(vim.opt.rtp:get()) do
print(p)
end
end
rtp()
local lazy = require("lazy")
lazy.setup({})
print("\nafter:")
rtp()
vim.cmd.scriptnames() |
Oh dear, I feel bad that my setup seems so different. Anyway, the result.
|
That's not right. That looks like |
My actual lazy configuration if that is of interest. It shouldn't be, but a data point if interested. |
Add the below to that init.lua local Util = require("lazy.core.util")
Util.walk(vim.env.VIMRUNTIME .. "/plugin", function(path, name, t)
print(table.concat({ path, name, t }, " | "))
end) What does that print? |
Also, does it load the scripts with the minimal init when setting |
I added that code to your custom config, not my my actual
|
the file type is missing in that list, so that would not work. It should have What does |
But note, my Neovim is installed in
|
No difference; |
Inside vim, what does the code below show? :lua= vim.loop.fs_stat("/usr/local/nvim-linux64/share/nvim/runtime/plugin/gzip.vim") |
I believe I do, just because Linux Mint automatically installs it. I didn't do anything to set it up; it just exists (because Ubuntu uses it and Linux Mint is a derivative). That is a reasonable hypothesis. The only weird thing is that packer.nvim had no issues AND default Neovim via |
|
I'm sure I can access those files, but NEovim doesn't seem to be able to stat the files |
See? There's no |
|
yep, but from inside vim, that |
oh wait, that is in there |
local handle = vim.loop.fs_scandir(vim.env.VIMRUNTIME .. "/plugin")
while handle do
local name, t = vim.loop.fs_scandir_next(handle)
if not name then
break
end
print(name .. " | " .. (t or "no type"))
end |
|
yeah, so that's not normal. I could make it work by assuming an empty type is a file, but that would still fail when sourcing sub directories |
AppArmour maybe is the issue. I may have to move my Neovim installation out of I don't mind if we close this down as being super-weird (only happening to me). Your calll, you have done a great deal already to debug this. |
Ok, I just downloaded All the plugins load correctly, including 100% this is AppArmour (probably related to |
I just pushed a change that defaults to |
Do you want to revert that change? I am fine with you doing that. My AppArmour issue requires me to fix my end. I likely just need to move my Neovim installation of out But keep this issue in mind if other users have super weird issues. Many thanks @folke. Great work on this excellent plugin manager. |
Did you check docs and existing issues?
Neovim version (nvim -v)
NVIM v0.8.1
Operating system/version
Linux Mint 21.1
Describe the bug
This is follow up from the discussion What is the easiest way to re-enable the standard matchparen plugin?.
In my case, the default
matchparen
andmatchit
plugin, installed in/usr/local/nvim-linux64/share/nvim/runtime/plugin
directory, are not autoloading as seen in this:scriptnames
result@folke in the #293 discussion made it known that all standard Neovim plugins in the rtp should automatically load. In my case they do not, see the next step for the minimal repo steps.
Steps To Reproduce
~/.config/nvim/init.lua
file:Run
nvim
followed by:scriptnames
and look formatchparen
plugin; it will be missing, at least it is for myself.Now run standard nvim via
nvim --clean
followed by:scriptnames
and look formatchparen
plugin; it will be loaded automatically.Expected Behavior
lazy.nvim should load
nvim/runtime/plugin
plugins includingmatchparen
.Repro
The text was updated successfully, but these errors were encountered: