wbthomason / packer.nvim

A use-package inspired plugin manager for Neovim. Uses native packages, supports Luarocks dependencies, written in Lua, allows for expressive config
MIT License
7.83k stars 266 forks source link

Windows 10 cannot install plugins despite enabling developer mode #399

Open medwatt opened 3 years ago

medwatt commented 3 years ago

I am trying to install a couple of plugins in nvim on windows 10, but it doesn't work. I read the README which says developer mode must be enabled. I did just that but it still fails to install plugins.

Here is a snippet of my init.lua.

--------------------------------------------------
-- Install packer if not already installed
--------------------------------------------------
local execute = vim.api.nvim_command
local fn = vim.fn

local install_path = fn.stdpath('data')..'/site/pack/packer/start/packer.nvim'

if fn.empty(fn.glob(install_path)) > 0 then
  fn.system({'git', 'clone', 'https://github.com/wbthomason/packer.nvim', install_path})
  execute 'packadd packer.nvim'
end

--------------------------------------------------
-- Plugins to install
--------------------------------------------------
local packer = require('packer')
local use = packer.use

local plugins = function()

    -- Packer
    use 'wbthomason/packer.nvim'

    -- Firenvim
    use {'glacambre/firenvim',
         run = function() vim.fn['firenvim#install'](0) end}

    -- Snippets
    use {'SirVer/ultisnips', config = [[require('main.plugin_config.ultisnips_config')]]}
    use {'honza/vim-snippets'}

    -- Text Completion
    use {'hrsh7th/nvim-compe', config = [[require('main.plugin_config.compe_config')]]}

end

--------------------------------------------------
-- Load correct init file
--------------------------------------------------
packer.startup(plugins)
akinsho commented 3 years ago

@medwatt I'm probably not going to be able to help but just so that whoever knows anything about how this works on windows can actually help, can you post more information about what errors exactly you are seeing exactly, what your packer compiled file is etc.

medwatt commented 3 years ago

@akinsho Thanks for your gesture as usual. The error I get when executing PackerInstall is:

Here's my packer_compiled.vim.

akinsho commented 3 years ago

Awesome thanks and for the screenshot, in the screen above where it shows each plugin that failed can you move your cursor over one of them and press enter this will expand the plugin and show you details about what went wrong. That might give a clue about why it isn't working

medwatt commented 3 years ago

@akinsho , it says fatal: Too many arguments.

nanotee commented 3 years ago

I think this is the same issue as #165, there's a space in the name of your home folder

medwatt commented 3 years ago

@nanotee I change the location of packer to a place without spaces. Same issue.

wbthomason commented 3 years ago

Can you please post the contents of your packer log? There may be more information about the failure in there.

medwatt commented 3 years ago

@wbthomason Here's the log file.

kdurant commented 3 years ago

@akinsho Thanks for your gesture as usual. The error I get when executing PackerInstall is:

Here's my packer_compiled.vim.

I meet the same problem