You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to run the below command provided in the readme on a fresh VM: $ nvim --headless -c 'autocmd User PackerComplete quitall' -c 'PackerSync'
I get many errors similar to this
Error detected while processing /home/twiclo/.local/share/nvim/site/pack/packer/start/nvim-ts-autotag/plugin/nvim-ts-autotag.vim:
line 1:
E5108: Error executing lua ...r/start/nvim-ts-autotag/lua/nvim-ts-autotag/internal.lua:2: module 'nvim-treesitter.configs' not found:
no field package.preload['nvim-treesitter.configs']
no file './nvim-treesitter/configs.lua'
no file '/opt/neovim/.deps/usr/share/luajit-2.1.0-beta3/nvim-treesitter/configs.lua'
I think it's trying to read my config files before installing packages. Things seem to work better if I remove the PackerSync command where things will get installed but it hangs the console and has to be force quit which doesn't work for what I'm trying to do. Any guidance would be appreciated
My init.lua:
require("main")
[twiclo@momo nvim]$ ls lua/main/
ascii.lua init.lua packer.lua remap.lua set.lua
Packer.lua
local ensure_packer = function()
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', '--depth', '1', 'https://github.com/wbthomason/packer.nvim', install_path})
vim.cmd [[packadd packer.nvim]]
return true
end
return false
end
local packer_bootstrap = ensure_packer()
-- vim.cmd [[packadd packer.nvim]]
return require('packer').startup(function(use)
use 'wbthomason/packer.nvim'
...Other plugins...
if packer_bootstrap then
require('packer').sync()
end
end)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm trying to run the below command provided in the readme on a fresh VM:
$ nvim --headless -c 'autocmd User PackerComplete quitall' -c 'PackerSync'
I get many errors similar to this
I think it's trying to read my config files before installing packages. Things seem to work better if I remove the
PackerSync
command where things will get installed but it hangs the console and has to be force quit which doesn't work for what I'm trying to do. Any guidance would be appreciatedMy init.lua:
Packer.lua
Beta Was this translation helpful? Give feedback.
All reactions