Skip to content

fix: #33 #34

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

Closed
wants to merge 2 commits into from
Closed

fix: #33 #34

wants to merge 2 commits into from

Conversation

epheien
Copy link
Contributor

@epheien epheien commented Jul 26, 2024

plugin/* will not loaded when it modify rtp in autocmd, such as:

autocmd FileType * ++once set rtp+=~/myconf/vim/pckr/opt/nvim-lspconfig

so pckr need to load them

I try to use not vim.tbl_isempty(vim.v.event) check if in autocmd context, but it failed, seems it is a bug of nvim

@lewis6991 lewis6991 closed this Dec 2, 2024
@lewis6991 lewis6991 reopened this Dec 3, 2024
@lewis6991
Copy link
Owner

Can you explain why this fixes the issue? If VimEnter has not happened, then that means plugin/ has not been loaded yet.

@lewis6991
Copy link
Owner

lewis6991 commented Dec 3, 2024

Ah I can see. Autocmds can be triggered after plugin/* is sourced but before v:vim_did_enter is set.

@lewis6991
Copy link
Owner

Does #46 fix the issue?

@lewis6991
Copy link
Owner

Merged #46 instead.

@lewis6991 lewis6991 closed this Dec 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants