neoclide / coc.nvim

Nodejs extension host for vim & neovim, load extensions like VSCode and host language servers.
Other
24.16k stars 954 forks source link

CocConfig hardcoded to use directory ~/.vim #4889

Closed drbeco closed 5 months ago

drbeco commented 5 months ago

Result from CocInfo

versions

vim version: VIM - Vi IMproved 9.0 9002127 node version: v20.0.0 coc.nvim version: 0.0.82-6e4e6eaf 2023-09-08 01:05:35 +0800 coc.nvim directory: /etc/vim/plugged/coc.nvim term: dumb platform: linux

Log of coc.nvim

2024-02-11T10:28:03.998 ERROR (pid:6882) [extensions-index] - Error on load package.json of coc-ccls Error: main file ./lib/extension.js not found, you may need to build the project. at X7 (/etc/vim/plugged/coc.nvim/build/index.js:251:21044) at async gF.globalExtensions (/etc/vim/plugged/coc.nvim/build/index.js:252:7107) 2024-02-11T10:28:04.292 INFO (pid:6882) [plugin] - coc.nvim initialized with node: v20.0.0 after 374 2024-02-11T10:29:13.648 INFO (pid:6882) [attach] - receive notification: showInfo [] 2024-02-11T10:29:26.888 INFO (pid:6882) [attach] - receive notification: showInfo []

Describe the bug

When running :CocConfig , it asks immediately to create directory ~/.vim instead of allowing for a more organized configuration such as ~/.config/vim

Reproduce the bug

We will close your issue when you don't provide minimal vimrc and we can't reproduce it

drbeco commented 5 months ago

Added

export VIMCONFIG="$HOME/.config/vim/"

to /etc/profile solved the issue

drbeco commented 5 months ago

Reference for your VIM configuration inside ~/.config/vim : https://vi.stackexchange.com/questions/11879/how-can-put-vimrc-and-viminfo-into-vim-directory/20067#20067