Closed mikehaertl closed 4 years ago
I found that this is probably rather an option that should be available from coc itself. I think the path is set here for extensions:
Unfortunately there's no way to configure it in coc either. Any idea still welcome.
@marlonfan Do you agree that this is an issue for Coc? Or could this be fixed here?
Hi, thanks feedback. You're going to use the storepath set by the coc.nvim: g:coc_data_home
, I think if your coc-config.json
are for all users, they should be in the path that all users have access to. or, Alternatively, each user has a .vimrc
file. @mikehaertl
Ok, I will probably only have a global init.vim
and leave the plugin install and config files local to each user. Anything else will not work reliably I found.
Thanks for your help.
I want to have system wide neovim plugins.
Setup
The global config belongs to root.
In
/etc/xdg/nvim/init.vim
I haveThis makes the extension end up in
/etc/xdg/nvim/coc/extensions/node_modules/coc-phpls/
.Problem
Only root can now work with coc, because it creates cache files in
/etc/xdg/nvim/coc/extensions/coc-phpls-data/
. Normal users don't have (and should not have) write permissions there.Is there a configuration option to make this path configurable?
If not, can such an option be added? In best case this should default somewhere in the users's home directory.