vim-polyglot icon indicating copy to clipboard operation
vim-polyglot copied to clipboard

runtimepath `resolve()`

Open nulty opened this issue 4 years ago • 0 comments

Does this bug happen when you install plugin without vim-polyglot?

install plugin without vim-polyglot

I don't understand this question. Install what plugin?

Describe the bug: vim-polyglot modifies the vim runtimepath resolving symlinks. If a user has their vim directory symlnked to a git repo on the filesystem, Ultisnips complicated python approach to globbing the filesystem for snippet files picks up both the target and source of the symlinks resulting in conflicting snippet files which are the exact same file essentially.

Is it necessary to resolve() each of the paths in the runtime path? https://github.com/sheerun/vim-polyglot/blob/master/autoload/polyglot/init.vim#L3581-L3586

To Reproduce: https://github.com/Artem-Schander/duplicate-ultisnips-issue-nvim-config

nulty avatar Dec 08 '21 23:12 nulty