Skip to content
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

source lua files in load_plugin #1031

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

beardedsakimonkey
Copy link

(This is a recreation of #1030, which I accidentally closed by force pushing)

When installing packer from a clean slate[1], and running packer.sync() with config containing

use({"nvim-treesitter/nvim-treesitter", run = ":TSUpdate" })

I'd see the following error in my :messages (similar to #897 (comment)):

[packer.nvim] [ERROR 20:50:19] async.lua:20: Error in coroutine: ...ack/packer/start/packer.nvim/lua/packer/plugin_utils.lua:236: Vim:E492: Not an editor command: TSUpdate

I think this is because nvim-treesitter sets up the :TSUpdate command in plugin/nvim-treesitter.lua and packer only sources .vim files when loading a plugin.

After making the change to also source .lua files, I no longer see the error message.

[1] rm -rf ~/.local/share/nvim/site/pack/packer && rm ~/.config/nvim/plugin/packer_compiled.lua

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.

None yet

1 participant