hrsh7th / cmp-path

nvim-cmp source for path
MIT License
599 stars 55 forks source link

add a `loaded_*` variable in case `after/plugin/` sourced twice #70

Closed aceforeverd closed 1 year ago

aceforeverd commented 1 year ago

In my stupid neovim setup, I use lazy.nvim with loadplugins = true, to use packages as well. Yet problems is plugins managed by lazy will sourced twice, so for plugins like cmp-path, I got the exact same complete entries, twice.

The PR is mainly for discussion (I guess ?), maybe there is a better solution, or just say bye to packages.

Thanks

aceforeverd commented 1 year ago

solved, adding the InsertEnter event should fix