[英]Neovim - 'plugged' directory cannot be found
I've been trying to set up a neovim environment on my macOS device for react development and when I was trying to install autocompletion plugin (coc-nvim) via vim-plug and when I tried to navigate to the 'plugged' directory it gave me the following error:我一直在尝试在我的 macOS 设备上设置一个 neovim 环境以进行反应开发,当我尝试通过 vim-plug 安装自动完成插件(coc-nvim)时,当我尝试导航到它给出的“插入”目录时我出现以下错误:
cd: no such file or directory: plugged
Here is my init.vim file:这是我的 init.vim 文件:
syntax on
:set number
:set tabstop=4 softtabstop=4
:set shiftwidth=4
:set expandtab
:set smartindent
:set nu
:set nowrap
:set smartcase
:set noswapfile
:set incsearch
:set colorcolumn=80
call plug#begin()
Plug 'https://github.com/vim-airline/vim-airline'
Plug 'https://github.com/ryanoasis/vim-devicons'
Plug 'https://github.com/preservim/tagbar'
Plug 'https://github.com/neoclide/coc.nvim'
call plug#end()
Any help would be appreciated.任何帮助,将不胜感激。
https://vi.stackexchange.com/ is a better place for this type of question as it relates to (neo)vim and not programming. https://vi.stackexchange.com/是解决此类问题的更好地方,因为它与 (neo)vim 相关而不是编程。
That said, if you're looking for the folder in the correct place and vim-plugged didn't create it automatically, just create it yourself.也就是说,如果您在正确的位置寻找文件夹并且 vim-plugged 没有自动创建它,只需自己创建它。 On Linux, the default location is equivalent to:
在 Linux 上,默认位置相当于:
call plug#begin(stdpath('data') . '/plugged')
ps.附言。 neovim has LSP support builtin starting with version 0.5.
从 0.5 版开始,neovim 内置了 LSP 支持。
call plug#begin('add here path where you want your folder to be , in your case i guess ~/.config/nvim/plugged ')
then:InstallPlug然后:安装插件
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.