-
Hi, I'm a new user of coc.nvim and want to create a docker image with extensions preinstalled. Is there another way to pre-install extensions (system-wide) for air-gapped environments ? Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Check package.json and node_modules in the folder |
Beta Was this translation helpful? Give feedback.
-
@chemzqm Thanks for the response. The problem for me is that $HOME is located on a volume, But I figured out that
# install coc extension (node module) globally
RUN npm install -g coc-snippets --global-style --ignore-scripts --no-bin-links --no-package-lock --only=prod
# see https://github.com/neoclide/coc.nvim/wiki/Install-coc.nvim#automation-script
mkdir -p ~/.config/coc/extensions
cd ~/.config/coc/extensions
if [ ! -f package.json ]
then
echo '{"dependencies":{}}'> package.json
fi
# link globally installed extension
npm link coc-snippets --save --no-package-lock --only=prod
|
Beta Was this translation helpful? Give feedback.
Check package.json and node_modules in the folder
:echo coc#util#get_data_home().'/extensions'