Closed MateoElias closed 1 year ago
You can circumvent this problem by wrapping the plug#
directive as such:
local Plug = vim.fn['plug#']
Then you can call it as such
Plug('neoclide/coc.vim', {['branch'] = release'})
So your file should be
local Plug = vim.fn['plug#']
vim.call('plug#begin', '~/.config/nvim/plugged')
-- PLUGINS
-- OneDark theme
Plug 'navarasu/onedark.nvim'
-- NVim Tree
Plug 'kyazdani42/nvim-web-devicons' -- Optional Icons
Plug 'kyazdani42/nvim-tree.lua'
-- CoC
Plug('neoclide/coc.nvim', {['branch'] = 'release'})
vim.call('plug#end')
This should do the trick! Hope it helps :smile:
Every time I try to install a plugin with a { 'do:' } function or { 'branch' }, I always get the error `Unexpected symbol near ' , ' (Being the comma to separate the "Plug" command)