coc.nvim icon indicating copy to clipboard operation
coc.nvim copied to clipboard

support git for windows

Open tmatz opened this issue 4 years ago • 1 comments

First of all, let me thank you for publishing such a great product.

My Feature Request is to support the windows environment, especially vim, which is included in git for windows.

I've been trying my own and coc-tsserver is basically working fine, so let me share my current work.

  • https://github.com/tmatz/coc.nvim/commits/feature/fix-for-git-bash

I'm not very familiar with javascript and typescript, so I think it's a strange implementation.

I would be happy if you could point out any points you noticed.

tmatz avatar Apr 18 '20 13:04 tmatz

First of all, let me thank you very much for making such a wonderful software! It's working fine for normal use.

I have the following request for support to git bash:

I have a following problem:
I've been using vim on git bash, I created a directory /c/Users/MyUser/.vim/vimrc to configure it.
So, I've installed coc.vim and when I try run :CocList I get:

[coc.nvim] Error on "CocList lists": ENOENT: no such file or directory, stat '\c\Users\MyUser\.config\coc

I think the cause of the problem is the following. Since git bash is only a Linux environment, the path uses the Linux path separator /.
However, the path displayed when I run :CocList, \c\Users\MyUser\.config\coc, uses the windows path separator \ for some reason.
So, if I can change \, the path separator for windows, to /, the path separator for Linux, I may be able to solve the problem.

Therefore, I think this issue looks like it might solve this, so if you don't mind, I would be happy to merge this issue as soon as possible. or, Have you already merged it into release branch?

(This question has already been asked on the stack overflow platform : https://stackoverflow.com/questions/64540087/vim-coc-vim-no-such-file-or-directory/67947644#67947644?newreg=186a584a78f1406b957dec9401917e99)

tama14142356 avatar Sep 10 '21 00:09 tama14142356