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.87k stars 266 forks source link

cond inconsistent behavior #245

Open horseinthesky opened 3 years ago

horseinthesky commented 3 years ago

I use cond function to install plugins in opt dir but still be get them loaded without putting explisit packadd <plugin_name> for each plugin in my config.

This works fine for every plugin except fzf config.

Steps to reproduce init.vim

if has('nvim-0.5')
  runtime! packer/packer_compiled.vim
  lua require 'setup'
endif

setup.lua

local fn = vim.fn
local execute = vim.api.nvim_command

-- Auto install packer.nvim if not exists
local install_path = fn.stdpath('data') .. '/site/pack/packer/opt/packer.nvim'
if fn.empty(fn.glob(install_path)) > 0 then
  execute('!git clone https://github.com/wbthomason/packer.nvim ' .. install_path)
end
vim.cmd [[packadd packer.nvim]]
vim.cmd 'autocmd BufWritePost plugins.lua PackerCompile' -- Auto compile when there are changes in plugins.lua

-- Install plugins
require('plugins')

plugins.lua

local packer = require('packer')
local util = require('packer.util')

packer.init {
    compile_path = util.join_paths(vim.fn.stdpath('config'), 'packer', 'packer_compiled.vim')
}

local function nightly()
  return vim.fn.has('nvim-0.5') == 1
end

packer.startup(function()

  -- Packer can manage itself as an optional plugin
  use {'wbthomason/packer.nvim', opt = true}

  use {
    'junegunn/fzf.vim',
    cond = nightly,
    requires = {
      'junegunn/fzf',
      run = 'cd ~/.fzf && ./install --all',
      cond = nightly,
    },
  }
end)

Somehow packer installs junegunn/fzf in start dir.

ll .local/share/nvim/site/pack/packer/start
drwxr-xr-x horseinthesky horseinthesky 4 KB Wed Mar  3 18:36:38 2021  fzf

Also, I am probably mistaken in the use of run attribute since fzf binary is not installed in ~/.fzf dir. I was expecting the behavior similar to:

Plug 'neoclide/coc.nvim', {'branch': 'release'}
Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' }
kunzaatko commented 3 years ago

I can confirm this. Also, when I have a plugin as a dependency and the plugin is not explicitly stated as opt = true, but this is only implied, in my situation by cond = true the dependency is installed as start.

wbthomason commented 3 years ago

Thanks for the report! Could either/both of you please post your packer_compiled files? It sounds like there may be a bug in the logic for assigning plugin type.

Regarding run: I think the issue there is that, for vim-plug, the dir key specifies somewhere the plugin is already installed. For packer, I think (though I haven't tested it yet myself) doing use {'~/.fzf', as = 'fzf', run = './install --all'} should work.

horseinthesky commented 3 years ago

@wbthomason My packer_compiled

" Automatically generated packer.nvim plugin loader code

if !has('nvim-0.5')
  echohl WarningMsg
  echom "Invalid Neovim version for packer.nvim!"
  echohl None
  finish
endif

packadd packer.nvim

try

lua << END
local package_path_str = "/home/horseinthesky/.cache/nvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/?.lua;/home/horseinthesky/.cache/nvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/?/init.lua;/home/horseinthesky/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/?.lua;/home/horseinthesky/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/?/init.lua"
local install_cpath_pattern = "/home/horseinthesky/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/lua/5.1/?.so"
if not string.find(package.path, package_path_str, 1, true) then
  package.path = package.path .. ';' .. package_path_str
end

if not string.find(package.cpath, install_cpath_pattern, 1, true) then
  package.cpath = package.cpath .. ';' .. install_cpath_pattern
end

local function try_loadstring(s, component, name)
  local success, result = pcall(loadstring(s))
  if not success then
    print('Error running ' .. component .. ' for ' .. name)
    error(result)
  end
  return result
end

_G.packer_plugins = {
  Colorizer = {
    config = { "\27LJ\2\n�\1\0\0\6\0\b\0\0146\0\0\0'\2\1\0B\0\2\0029\1\2\0'\3\3\0'\4\4\0'\5\5\0B\1\4\0019\1\2\0'\3\3\0'\4\6\0'\5\a\0B\1\4\1K\0\1\0\27<cmd>ColorSwapFgBg<CR>\15<leader>cs\25<cmd>ColorToggle<CR>\15<leader>ct\6n\bmap\nutils\frequire\0" },
    loaded = false,
    needs_bufread = false,
    path = "/home/horseinthesky/.local/share/nvim/site/pack/packer/opt/Colorizer"
  },
  ["completion-nvim"] = {
    loaded = false,
    needs_bufread = false,
    path = "/home/horseinthesky/.local/share/nvim/site/pack/packer/opt/completion-nvim"
  },
  fzf = {
    loaded = true,
    path = "/home/horseinthesky/.local/share/nvim/site/pack/packer/start/fzf"
  },
  ["fzf.vim"] = {
    config = { "\27LJ\2\n�\5\0\0\6\0&\0;6\0\0\0009\0\1\0005\1\4\0005\2\3\0=\2\5\0015\2\6\0=\2\a\0015\2\b\0=\2\t\0015\2\n\0=\2\v\0015\2\f\0=\2\r\0015\2\14\0=\2\15\1=\1\2\0006\0\0\0009\0\1\0005\1\17\0=\1\16\0006\0\0\0009\0\1\0005\1\20\0005\2\19\0=\2\21\1=\1\18\0006\0\0\0009\0\1\0'\1\23\0=\1\22\0006\0\24\0'\2\25\0B\0\2\0029\1\26\0'\3\27\0'\4\28\0'\5\29\0B\1\4\0019\1\26\0'\3\27\0'\4\30\0'\5\31\0B\1\4\0019\1\26\0'\3\27\0'\4 \0'\5!\0B\1\4\0019\1\26\0'\3\27\0'\4\"\0'\5#\0B\1\4\0019\1\26\0'\3\27\0'\4$\0'\5%\0B\1\4\1K\0\1\0\22<cmd>Commands<CR>\15<leader>co\18<cmd>Maps<CR>\14<leader>m\20<cmd>BLines<CR>\15<leader>bl\16<cmd>Rg<CR>\n<C-p>\19<cmd>Files<CR>\6;\6n\bmap\nutils\frequireK--graph --color=always --format=\"%C(auto)%h%d %s %C(black)%C(bold)%cr\"\28fzf_commits_log_options\vwindow\1\0\0\1\0\3\nwidth\3\1\fyoffset\3\1\vheight\4\0����\3\15fzf_layout\1\0\3\vctrl-v\vvsplit\vctrl-t\14tab split\vctrl-s\nsplit\15fzf_action\vmarker\1\3\0\0\afg\bTag\bbg+\1\4\0\0\abg\15CursorLine\17CursorColumn\fpointer\1\3\0\0\afg\14Exception\tinfo\1\3\0\0\afg\fPreProc\bhl+\1\3\0\0\afg\vSearch\ahl\1\0\0\1\3\0\0\afg\vSearch\15fzf_colors\6g\bvim\0" },
    loaded = false,
    needs_bufread = false,
    path = "/home/horseinthesky/.local/share/nvim/site/pack/packer/opt/fzf.vim"
  },
  ["galaxyline.nvim"] = {
    config = { "\27LJ\2\n*\0\0\3\0\2\0\0046\0\0\0'\2\1\0B\0\2\1K\0\1\0\15statusline\frequire\0" },
    load_after = {
      ["nvim-web-devicons"] = true
    },
    loaded = false,
    needs_bufread = false,
    path = "/home/horseinthesky/.local/share/nvim/site/pack/packer/opt/galaxyline.nvim"
  },
  ["gitsigns.nvim"] = {
    config = { "\27LJ\2\n�\2\0\0\5\0\16\0\0196\0\0\0'\2\1\0B\0\2\0029\0\2\0005\2\14\0005\3\4\0005\4\3\0=\4\5\0035\4\6\0=\4\a\0035\4\b\0=\4\t\0035\4\n\0=\4\v\0035\4\f\0=\4\r\3=\3\15\2B\0\2\1K\0\1\0\nsigns\1\0\0\17changedelete\1\0\2\ttext\6 \ahl\15DiffChange\14topdelete\1\0\2\ttext\6 \ahl\15DiffDelete\vdelete\1\0\2\ttext\6 \ahl\15DiffDelete\vchange\1\0\2\ttext\6 \ahl\15DiffChange\badd\1\0\0\1\0\2\ttext\6 \ahl\fDiffAdd\nsetup\rgitsigns\frequire\0" },
    load_after = {
      ["plenary.nvim"] = true
    },
    loaded = false,
    needs_bufread = false,
    path = "/home/horseinthesky/.local/share/nvim/site/pack/packer/opt/gitsigns.nvim"
  },
  gruvbox = {
    loaded = false,
    needs_bufread = false,
    path = "/home/horseinthesky/.local/share/nvim/site/pack/packer/opt/gruvbox"
  },
  indentline = {
    after_files = { "/home/horseinthesky/.local/share/nvim/site/pack/packer/opt/indentline/after/plugin/indentLine.vim" },
    config = { "\27LJ\2\n�\2\0\0\6\0\r\0\0216\0\0\0009\0\1\0005\1\3\0=\1\2\0006\0\0\0009\0\1\0005\1\5\0=\1\4\0006\0\0\0009\0\1\0)\1�\0=\1\6\0006\0\a\0'\2\b\0B\0\2\0029\1\t\0'\3\n\0'\4\v\0'\5\f\0B\1\4\1K\0\1\0\31<cmd>IndentLinesToggle<CR>\14<leader>i\6n\bmap\nutils\frequire\26indentLine_color_term\1\5\0\0\6|\a¦\b┆\b┊\25indentLine_char_list\1\3\0\0\vtagbar\rmarkdown\31indentLine_fileTypeExclude\6g\bvim\0" },
    loaded = false,
    needs_bufread = false,
    path = "/home/horseinthesky/.local/share/nvim/site/pack/packer/opt/indentline"
  },
  ["linediff.vim"] = {
    config = { "\27LJ\2\n�\1\0\0\6\0\t\0\0196\0\0\0'\2\1\0B\0\2\0029\1\2\0'\3\3\0'\4\4\0'\5\5\0B\1\4\0019\1\2\0'\3\6\0'\4\4\0'\5\5\0B\1\4\0019\1\2\0'\3\3\0'\4\a\0'\5\b\0B\1\4\1K\0\1\0\27<cmd>LinediffReset<CR>\15<leader>lr\6x\18:Linediff<CR>\15<leader>ld\6n\bmap\nutils\frequire\0" },
    loaded = false,
    needs_bufread = false,
    path = "/home/horseinthesky/.local/share/nvim/site/pack/packer/opt/linediff.vim"
  },
  ["nvim-lspconfig"] = {
    loaded = false,
    needs_bufread = false,
    path = "/home/horseinthesky/.local/share/nvim/site/pack/packer/opt/nvim-lspconfig"
  },
  ["nvim-web-devicons"] = {
    after = { "galaxyline.nvim" },
    loaded = false,
    needs_bufread = false,
    path = "/home/horseinthesky/.local/share/nvim/site/pack/packer/opt/nvim-web-devicons"
  },
  ["packer.nvim"] = {
    loaded = false,
    needs_bufread = false,
    path = "/home/horseinthesky/.local/share/nvim/site/pack/packer/opt/packer.nvim"
  },
  ["plenary.nvim"] = {
    after = { "gitsigns.nvim" },
    loaded = false,
    needs_bufread = false,
    path = "/home/horseinthesky/.local/share/nvim/site/pack/packer/opt/plenary.nvim"
  },
  ["sideways.vim"] = {
    config = { "\27LJ\2\n�\1\0\0\6\0\b\0\0146\0\0\0'\2\1\0B\0\2\0029\1\2\0'\3\3\0'\4\4\0'\5\5\0B\1\4\0019\1\2\0'\3\3\0'\4\6\0'\5\a\0B\1\4\1K\0\1\0\27<cmd>SidewaysRight<CR>\14<leader>l\26<cmd>SidewaysLeft<CR>\14<leader>h\6n\bmap\nutils\frequire\0" },
    loaded = false,
    needs_bufread = false,
    path = "/home/horseinthesky/.local/share/nvim/site/pack/packer/opt/sideways.vim"
  },
  tabular = {
    after_files = { "/home/horseinthesky/.local/share/nvim/site/pack/packer/opt/tabular/after/plugin/TabularMaps.vim" },
    loaded = false,
    needs_bufread = false,
    path = "/home/horseinthesky/.local/share/nvim/site/pack/packer/opt/tabular"
  },
  tagbar = {
    config = { "\27LJ\2\n�\1\0\0\6\0\v\0\0216\0\0\0'\2\1\0B\0\2\0029\1\2\0'\3\3\0'\4\4\0'\5\5\0B\1\4\0016\1\6\0009\1\a\1)\2\1\0=\2\b\0016\1\6\0009\1\a\1)\2\1\0=\2\t\0016\1\6\0009\1\a\1)\2\1\0=\2\n\1K\0\1\0\16tagbar_sort\21tagbar_autoclose\21tagbar_autofocus\6g\bvim\26<cmd>TagbarToggle<CR>\t<F8>\6n\bmap\nutils\frequire\0" },
    loaded = false,
    needs_bufread = false,
    path = "/home/horseinthesky/.local/share/nvim/site/pack/packer/opt/tagbar"
  },
  ["vim-better-whitespace"] = {
    config = { "\27LJ\2\n�\1\0\0\6\0\v\0\0186\0\0\0009\0\1\0)\1�\0=\1\2\0006\0\3\0'\2\4\0B\0\2\0029\1\5\0'\3\6\0'\4\a\0'\5\b\0B\1\4\0019\1\5\0'\3\6\0'\4\t\0'\5\n\0B\1\4\1K\0\1\0$<cmd>PrevTrailingWhitespace<CR>\a[w$<cmd>NextTrailingWhitespace<CR>\a]w\6n\bmap\nutils\frequire!better_whitespace_ctermcolor\6g\bvim\0" },
    loaded = false,
    needs_bufread = false,
    path = "/home/horseinthesky/.local/share/nvim/site/pack/packer/opt/vim-better-whitespace"
  },
  ["vim-commentary"] = {
    loaded = false,
    needs_bufread = false,
    path = "/home/horseinthesky/.local/share/nvim/site/pack/packer/opt/vim-commentary"
  },
  ["vim-diminactive"] = {
    config = { "\27LJ\2\n8\0\0\2\0\3\0\0056\0\0\0009\0\1\0)\1\1\0=\1\2\0K\0\1\0\27diminactive_use_syntax\6g\bvim\0" },
    loaded = false,
    needs_bufread = false,
    path = "/home/horseinthesky/.local/share/nvim/site/pack/packer/opt/vim-diminactive"
  },
  ["vim-dirdiff"] = {
    loaded = false,
    needs_bufread = false,
    path = "/home/horseinthesky/.local/share/nvim/site/pack/packer/opt/vim-dirdiff"
  },
  ["vim-easymotion"] = {
    config = { "\27LJ\2\n�\1\0\0\6\0\n\0\0176\0\0\0009\0\1\0)\1\0\0=\1\2\0006\0\0\0009\0\1\0)\1\1\0=\1\3\0006\0\4\0'\2\5\0B\0\2\0029\1\6\0'\3\a\0'\4\b\0'\5\t\0B\1\4\1K\0\1\0\":call EasyMotion#S(1,0,2)<CR>\6f\6n\bmap\nutils\frequire\25EasyMotion_smartcase\26EasyMotion_do_mapping\6g\bvim\0" },
    loaded = false,
    needs_bufread = false,
    path = "/home/horseinthesky/.local/share/nvim/site/pack/packer/opt/vim-easymotion"
  },
  ["vim-fugitive"] = {
    config = { "\27LJ\2\n�\1\0\0\6\0\n\0\0196\0\0\0'\2\1\0B\0\2\0029\1\2\0'\3\3\0'\4\4\0'\5\5\0B\1\4\0019\1\2\0'\3\3\0'\4\6\0'\5\a\0B\1\4\0019\1\2\0'\3\3\0'\4\b\0'\5\t\0B\1\4\1K\0\1\0\25<cmd>diffget //3<CR>\bgdl\25<cmd>diffget //2<CR>\bgdh\26<cmd>Gvdiffsplit!<CR>\15<leader>gd\6n\bmap\nutils\frequire\0" },
    loaded = false,
    needs_bufread = true,
    path = "/home/horseinthesky/.local/share/nvim/site/pack/packer/opt/vim-fugitive"
  },
  ["vim-move"] = {
    config = { "\27LJ\2\n5\0\0\2\0\4\0\0056\0\0\0009\0\1\0'\1\3\0=\1\2\0K\0\1\0\6S\22move_key_modifier\6g\bvim\0" },
    loaded = false,
    needs_bufread = false,
    path = "/home/horseinthesky/.local/share/nvim/site/pack/packer/opt/vim-move"
  },
  ["vim-multiple-cursors"] = {
    config = { "\27LJ\2\nH\0\0\2\0\4\0\0056\0\0\0009\0\1\0'\1\3\0=\1\2\0K\0\1\0\n<C-M>%multi_cursor_select_all_word_key\6g\bvim\0" },
    loaded = false,
    needs_bufread = false,
    path = "/home/horseinthesky/.local/share/nvim/site/pack/packer/opt/vim-multiple-cursors"
  },
  ["vim-mundo"] = {
    config = { "\27LJ\2\n�\1\0\0\6\0\f\0\0256\0\0\0'\2\1\0B\0\2\0029\1\2\0'\3\3\0'\4\4\0'\5\5\0B\1\4\0016\1\6\0009\1\a\1)\2\1\0=\2\b\0016\1\6\0009\1\a\1)\2\25\0=\2\t\0016\1\6\0009\1\a\1)\2\1\0=\2\n\0016\1\6\0009\1\a\1)\2\1\0=\2\v\1K\0\1\0\26mundo_close_on_revert\25mundo_preview_bottom\16mundo_width\25mundo_prefer_python3\6g\bvim\25<cmd>MundoToggle<CR>\t<F5>\6n\bmap\nutils\frequire\0" },
    loaded = false,
    needs_bufread = false,
    path = "/home/horseinthesky/.local/share/nvim/site/pack/packer/opt/vim-mundo"
  },
  ["vim-repeat"] = {
    loaded = false,
    needs_bufread = false,
    path = "/home/horseinthesky/.local/share/nvim/site/pack/packer/opt/vim-repeat"
  },
  ["vim-solarized8"] = {
    loaded = false,
    needs_bufread = false,
    path = "/home/horseinthesky/.local/share/nvim/site/pack/packer/opt/vim-solarized8"
  },
  ["vim-startify"] = {
    config = { "\27LJ\2\n�\1\0\0\4\0\n\0\0216\0\0\0009\0\1\0)\1\n\0=\1\2\0006\0\0\0009\0\1\0)\1\1\0=\1\3\0006\0\0\0009\0\1\0004\1\3\0005\2\5\0005\3\6\0=\3\a\2>\2\1\0015\2\b\0005\3\t\0=\3\a\2>\2\2\1=\1\4\0K\0\1\0\1\2\0\0\22   Saved sessions\1\0\1\ttype\rsessions\vheader\1\2\0\0\20   Recent files\1\0\1\ttype\bdir\19startify_lists!startify_session_persistence\26startify_files_number\6g\bvim\0" },
    loaded = false,
    needs_bufread = false,
    path = "/home/horseinthesky/.local/share/nvim/site/pack/packer/opt/vim-startify"
  },
  ["vim-surround"] = {
    loaded = false,
    needs_bufread = false,
    path = "/home/horseinthesky/.local/share/nvim/site/pack/packer/opt/vim-surround"
  }
}

-- Conditional loads
if
  try_loadstring("\27LJ\2\nH\0\0\3\0\4\1\v6\0\0\0009\0\1\0009\0\2\0'\2\3\0B\0\2\2\b\0\0\0X\0\2�+\0\1\0X\1\1�+\0\2\0L\0\2\0\rnvim-0.5\bhas\afn\bvim\2\0", "condition", "fzf.vim")
then
        vim.cmd [[packadd fzf.vim]]
        -- Config for: fzf.vim
        try_loadstring("\27LJ\2\n�\5\0\0\6\0&\0;6\0\0\0009\0\1\0005\1\4\0005\2\3\0=\2\5\0015\2\6\0=\2\a\0015\2\b\0=\2\t\0015\2\n\0=\2\v\0015\2\f\0=\2\r\0015\2\14\0=\2\15\1=\1\2\0006\0\0\0009\0\1\0005\1\17\0=\1\16\0006\0\0\0009\0\1\0005\1\20\0005\2\19\0=\2\21\1=\1\18\0006\0\0\0009\0\1\0'\1\23\0=\1\22\0006\0\24\0'\2\25\0B\0\2\0029\1\26\0'\3\27\0'\4\28\0'\5\29\0B\1\4\0019\1\26\0'\3\27\0'\4\30\0'\5\31\0B\1\4\0019\1\26\0'\3\27\0'\4 \0'\5!\0B\1\4\0019\1\26\0'\3\27\0'\4\"\0'\5#\0B\1\4\0019\1\26\0'\3\27\0'\4$\0'\5%\0B\1\4\1K\0\1\0\22<cmd>Commands<CR>\15<leader>co\18<cmd>Maps<CR>\14<leader>m\20<cmd>BLines<CR>\15<leader>bl\16<cmd>Rg<CR>\n<C-p>\19<cmd>Files<CR>\6;\6n\bmap\nutils\frequireK--graph --color=always --format=\"%C(auto)%h%d %s %C(black)%C(bold)%cr\"\28fzf_commits_log_options\vwindow\1\0\0\1\0\3\nwidth\3\1\fyoffset\3\1\vheight\4\0����\3\15fzf_layout\1\0\3\vctrl-v\vvsplit\vctrl-t\14tab split\vctrl-s\nsplit\15fzf_action\vmarker\1\3\0\0\afg\bTag\bbg+\1\4\0\0\abg\15CursorLine\17CursorColumn\fpointer\1\3\0\0\afg\14Exception\tinfo\1\3\0\0\afg\fPreProc\bhl+\1\3\0\0\afg\vSearch\ahl\1\0\0\1\3\0\0\afg\vSearch\15fzf_colors\6g\bvim\0", "config", "fzf.vim")
end

if
  try_loadstring("\27LJ\2\nH\0\0\3\0\4\1\v6\0\0\0009\0\1\0009\0\2\0'\2\3\0B\0\2\2\b\0\0\0X\0\2�+\0\1\0X\1\1�+\0\2\0L\0\2\0\rnvim-0.5\bhas\afn\bvim\2\0", "condition", "sideways.vim")
then
        vim.cmd [[packadd sideways.vim]]
        -- Config for: sideways.vim
        try_loadstring("\27LJ\2\n�\1\0\0\6\0\b\0\0146\0\0\0'\2\1\0B\0\2\0029\1\2\0'\3\3\0'\4\4\0'\5\5\0B\1\4\0019\1\2\0'\3\3\0'\4\6\0'\5\a\0B\1\4\1K\0\1\0\27<cmd>SidewaysRight<CR>\14<leader>l\26<cmd>SidewaysLeft<CR>\14<leader>h\6n\bmap\nutils\frequire\0", "config", "sideways.vim")
end

if
  try_loadstring("\27LJ\2\nH\0\0\3\0\4\1\v6\0\0\0009\0\1\0009\0\2\0'\2\3\0B\0\2\2\b\0\0\0X\0\2�+\0\1\0X\1\1�+\0\2\0L\0\2\0\rnvim-0.5\bhas\afn\bvim\2\0", "condition", "linediff.vim")
then
        vim.cmd [[packadd linediff.vim]]
        -- Config for: linediff.vim
        try_loadstring("\27LJ\2\n�\1\0\0\6\0\t\0\0196\0\0\0'\2\1\0B\0\2\0029\1\2\0'\3\3\0'\4\4\0'\5\5\0B\1\4\0019\1\2\0'\3\6\0'\4\4\0'\5\5\0B\1\4\0019\1\2\0'\3\3\0'\4\a\0'\5\b\0B\1\4\1K\0\1\0\27<cmd>LinediffReset<CR>\15<leader>lr\6x\18:Linediff<CR>\15<leader>ld\6n\bmap\nutils\frequire\0", "config", "linediff.vim")
end

if
  try_loadstring("\27LJ\2\nH\0\0\3\0\4\1\v6\0\0\0009\0\1\0009\0\2\0'\2\3\0B\0\2\2\b\0\0\0X\0\2�+\0\1\0X\1\1�+\0\2\0L\0\2\0\rnvim-0.5\bhas\afn\bvim\2\0", "condition", "Colorizer")
then
        vim.cmd [[packadd Colorizer]]
        -- Config for: Colorizer
        try_loadstring("\27LJ\2\n�\1\0\0\6\0\b\0\0146\0\0\0'\2\1\0B\0\2\0029\1\2\0'\3\3\0'\4\4\0'\5\5\0B\1\4\0019\1\2\0'\3\3\0'\4\6\0'\5\a\0B\1\4\1K\0\1\0\27<cmd>ColorSwapFgBg<CR>\15<leader>cs\25<cmd>ColorToggle<CR>\15<leader>ct\6n\bmap\nutils\frequire\0", "config", "Colorizer")
end

if
  try_loadstring("\27LJ\2\nH\0\0\3\0\4\1\v6\0\0\0009\0\1\0009\0\2\0'\2\3\0B\0\2\2\b\0\0\0X\0\2�+\0\1\0X\1\1�+\0\2\0L\0\2\0\rnvim-0.5\bhas\afn\bvim\2\0", "condition", "gitsigns.nvim")
then
        vim.cmd [[packadd gitsigns.nvim]]
        -- Config for: gitsigns.nvim
        try_loadstring("\27LJ\2\n�\2\0\0\5\0\16\0\0196\0\0\0'\2\1\0B\0\2\0029\0\2\0005\2\14\0005\3\4\0005\4\3\0=\4\5\0035\4\6\0=\4\a\0035\4\b\0=\4\t\0035\4\n\0=\4\v\0035\4\f\0=\4\r\3=\3\15\2B\0\2\1K\0\1\0\nsigns\1\0\0\17changedelete\1\0\2\ttext\6 \ahl\15DiffChange\14topdelete\1\0\2\ttext\6 \ahl\15DiffDelete\vdelete\1\0\2\ttext\6 \ahl\15DiffDelete\vchange\1\0\2\ttext\6 \ahl\15DiffChange\badd\1\0\0\1\0\2\ttext\6 \ahl\fDiffAdd\nsetup\rgitsigns\frequire\0", "config", "gitsigns.nvim")
end

if
  try_loadstring("\27LJ\2\nH\0\0\3\0\4\1\v6\0\0\0009\0\1\0009\0\2\0'\2\3\0B\0\2\2\b\0\0\0X\0\2�+\0\1\0X\1\1�+\0\2\0L\0\2\0\rnvim-0.5\bhas\afn\bvim\2\0", "condition", "vim-mundo")
then
        vim.cmd [[packadd vim-mundo]]
        -- Config for: vim-mundo
        try_loadstring("\27LJ\2\n�\1\0\0\6\0\f\0\0256\0\0\0'\2\1\0B\0\2\0029\1\2\0'\3\3\0'\4\4\0'\5\5\0B\1\4\0016\1\6\0009\1\a\1)\2\1\0=\2\b\0016\1\6\0009\1\a\1)\2\25\0=\2\t\0016\1\6\0009\1\a\1)\2\1\0=\2\n\0016\1\6\0009\1\a\1)\2\1\0=\2\v\1K\0\1\0\26mundo_close_on_revert\25mundo_preview_bottom\16mundo_width\25mundo_prefer_python3\6g\bvim\25<cmd>MundoToggle<CR>\t<F5>\6n\bmap\nutils\frequire\0", "config", "vim-mundo")
end

if
  try_loadstring("\27LJ\2\nH\0\0\3\0\4\1\v6\0\0\0009\0\1\0009\0\2\0'\2\3\0B\0\2\2\b\0\0\0X\0\2�+\0\1\0X\1\1�+\0\2\0L\0\2\0\rnvim-0.5\bhas\afn\bvim\2\0", "condition", "vim-solarized8")
then
        vim.cmd [[packadd vim-solarized8]]
end

if
  try_loadstring("\27LJ\2\nH\0\0\3\0\4\1\v6\0\0\0009\0\1\0009\0\2\0'\2\3\0B\0\2\2\b\0\0\0X\0\2�+\0\1\0X\1\1�+\0\2\0L\0\2\0\rnvim-0.5\bhas\afn\bvim\2\0", "condition", "vim-easymotion")
then
        vim.cmd [[packadd vim-easymotion]]
        -- Config for: vim-easymotion
        try_loadstring("\27LJ\2\n�\1\0\0\6\0\n\0\0176\0\0\0009\0\1\0)\1\0\0=\1\2\0006\0\0\0009\0\1\0)\1\1\0=\1\3\0006\0\4\0'\2\5\0B\0\2\0029\1\6\0'\3\a\0'\4\b\0'\5\t\0B\1\4\1K\0\1\0\":call EasyMotion#S(1,0,2)<CR>\6f\6n\bmap\nutils\frequire\25EasyMotion_smartcase\26EasyMotion_do_mapping\6g\bvim\0", "config", "vim-easymotion")
end

if
  try_loadstring("\27LJ\2\nH\0\0\3\0\4\1\v6\0\0\0009\0\1\0009\0\2\0'\2\3\0B\0\2\2\b\0\0\0X\0\2�+\0\1\0X\1\1�+\0\2\0L\0\2\0\rnvim-0.5\bhas\afn\bvim\2\0", "condition", "completion-nvim")
then
        vim.cmd [[packadd completion-nvim]]
end

if
  try_loadstring("\27LJ\2\nH\0\0\3\0\4\1\v6\0\0\0009\0\1\0009\0\2\0'\2\3\0B\0\2\2\b\0\0\0X\0\2�+\0\1\0X\1\1�+\0\2\0L\0\2\0\rnvim-0.5\bhas\afn\bvim\2\0", "condition", "indentline")
then
        vim.cmd [[packadd indentline]]
        -- Config for: indentline
        try_loadstring("\27LJ\2\n�\2\0\0\6\0\r\0\0216\0\0\0009\0\1\0005\1\3\0=\1\2\0006\0\0\0009\0\1\0005\1\5\0=\1\4\0006\0\0\0009\0\1\0)\1�\0=\1\6\0006\0\a\0'\2\b\0B\0\2\0029\1\t\0'\3\n\0'\4\v\0'\5\f\0B\1\4\1K\0\1\0\31<cmd>IndentLinesToggle<CR>\14<leader>i\6n\bmap\nutils\frequire\26indentLine_color_term\1\5\0\0\6|\a¦\b┆\b┊\25indentLine_char_list\1\3\0\0\vtagbar\rmarkdown\31indentLine_fileTypeExclude\6g\bvim\0", "config", "indentline")
end

if
  try_loadstring("\27LJ\2\nH\0\0\3\0\4\1\v6\0\0\0009\0\1\0009\0\2\0'\2\3\0B\0\2\2\b\0\0\0X\0\2�+\0\1\0X\1\1�+\0\2\0L\0\2\0\rnvim-0.5\bhas\afn\bvim\2\0", "condition", "vim-surround")
then
        vim.cmd [[packadd vim-surround]]
end

if
  try_loadstring("\27LJ\2\nH\0\0\3\0\4\1\v6\0\0\0009\0\1\0009\0\2\0'\2\3\0B\0\2\2\b\0\0\0X\0\2�+\0\1\0X\1\1�+\0\2\0L\0\2\0\rnvim-0.5\bhas\afn\bvim\2\0", "condition", "vim-commentary")
then
        vim.cmd [[packadd vim-commentary]]
end

if
  try_loadstring("\27LJ\2\nH\0\0\3\0\4\1\v6\0\0\0009\0\1\0009\0\2\0'\2\3\0B\0\2\2\b\0\0\0X\0\2�+\0\1\0X\1\1�+\0\2\0L\0\2\0\rnvim-0.5\bhas\afn\bvim\2\0", "condition", "gruvbox")
then
        vim.cmd [[packadd gruvbox]]
end

if
  try_loadstring("\27LJ\2\nH\0\0\3\0\4\1\v6\0\0\0009\0\1\0009\0\2\0'\2\3\0B\0\2\2\b\0\0\0X\0\2�+\0\1\0X\1\1�+\0\2\0L\0\2\0\rnvim-0.5\bhas\afn\bvim\2\0", "condition", "plenary.nvim")
then
        vim.cmd [[packadd plenary.nvim]]
end

if
  try_loadstring("\27LJ\2\nH\0\0\3\0\4\1\v6\0\0\0009\0\1\0009\0\2\0'\2\3\0B\0\2\2\b\0\0\0X\0\2�+\0\1\0X\1\1�+\0\2\0L\0\2\0\rnvim-0.5\bhas\afn\bvim\2\0", "condition", "vim-multiple-cursors")
then
        vim.cmd [[packadd vim-multiple-cursors]]
        -- Config for: vim-multiple-cursors
        try_loadstring("\27LJ\2\nH\0\0\2\0\4\0\0056\0\0\0009\0\1\0'\1\3\0=\1\2\0K\0\1\0\n<C-M>%multi_cursor_select_all_word_key\6g\bvim\0", "config", "vim-multiple-cursors")
end

if
  try_loadstring("\27LJ\2\nH\0\0\3\0\4\1\v6\0\0\0009\0\1\0009\0\2\0'\2\3\0B\0\2\2\b\0\0\0X\0\2�+\0\1\0X\1\1�+\0\2\0L\0\2\0\rnvim-0.5\bhas\afn\bvim\2\0", "condition", "vim-better-whitespace")
then
        vim.cmd [[packadd vim-better-whitespace]]
        -- Config for: vim-better-whitespace
        try_loadstring("\27LJ\2\n�\1\0\0\6\0\v\0\0186\0\0\0009\0\1\0)\1�\0=\1\2\0006\0\3\0'\2\4\0B\0\2\0029\1\5\0'\3\6\0'\4\a\0'\5\b\0B\1\4\0019\1\5\0'\3\6\0'\4\t\0'\5\n\0B\1\4\1K\0\1\0$<cmd>PrevTrailingWhitespace<CR>\a[w$<cmd>NextTrailingWhitespace<CR>\a]w\6n\bmap\nutils\frequire!better_whitespace_ctermcolor\6g\bvim\0", "config", "vim-better-whitespace")
end

if
  try_loadstring("\27LJ\2\nH\0\0\3\0\4\1\v6\0\0\0009\0\1\0009\0\2\0'\2\3\0B\0\2\2\b\0\0\0X\0\2�+\0\1\0X\1\1�+\0\2\0L\0\2\0\rnvim-0.5\bhas\afn\bvim\2\0", "condition", "nvim-web-devicons")
then
        vim.cmd [[packadd nvim-web-devicons]]
end

if
  try_loadstring("\27LJ\2\nH\0\0\3\0\4\1\v6\0\0\0009\0\1\0009\0\2\0'\2\3\0B\0\2\2\b\0\0\0X\0\2�+\0\1\0X\1\1�+\0\2\0L\0\2\0\rnvim-0.5\bhas\afn\bvim\2\0", "condition", "nvim-lspconfig")
then
        vim.cmd [[packadd nvim-lspconfig]]
end

if
  try_loadstring("\27LJ\2\nH\0\0\3\0\4\1\v6\0\0\0009\0\1\0009\0\2\0'\2\3\0B\0\2\2\b\0\0\0X\0\2�+\0\1\0X\1\1�+\0\2\0L\0\2\0\rnvim-0.5\bhas\afn\bvim\2\0", "condition", "vim-move")
then
        vim.cmd [[packadd vim-move]]
        -- Config for: vim-move
        try_loadstring("\27LJ\2\n5\0\0\2\0\4\0\0056\0\0\0009\0\1\0'\1\3\0=\1\2\0K\0\1\0\6S\22move_key_modifier\6g\bvim\0", "config", "vim-move")
end

if
  try_loadstring("\27LJ\2\nH\0\0\3\0\4\1\v6\0\0\0009\0\1\0009\0\2\0'\2\3\0B\0\2\2\b\0\0\0X\0\2�+\0\1\0X\1\1�+\0\2\0L\0\2\0\rnvim-0.5\bhas\afn\bvim\2\0", "condition", "vim-diminactive")
then
        vim.cmd [[packadd vim-diminactive]]
        -- Config for: vim-diminactive
        try_loadstring("\27LJ\2\n8\0\0\2\0\3\0\0056\0\0\0009\0\1\0)\1\1\0=\1\2\0K\0\1\0\27diminactive_use_syntax\6g\bvim\0", "config", "vim-diminactive")
end

if
  try_loadstring("\27LJ\2\nH\0\0\3\0\4\1\v6\0\0\0009\0\1\0009\0\2\0'\2\3\0B\0\2\2\b\0\0\0X\0\2�+\0\1\0X\1\1�+\0\2\0L\0\2\0\rnvim-0.5\bhas\afn\bvim\2\0", "condition", "tabular")
then
        vim.cmd [[packadd tabular]]
end

if
  try_loadstring("\27LJ\2\nH\0\0\3\0\4\1\v6\0\0\0009\0\1\0009\0\2\0'\2\3\0B\0\2\2\b\0\0\0X\0\2�+\0\1\0X\1\1�+\0\2\0L\0\2\0\rnvim-0.5\bhas\afn\bvim\2\0", "condition", "vim-dirdiff")
then
        vim.cmd [[packadd vim-dirdiff]]
end

if
  try_loadstring("\27LJ\2\nH\0\0\3\0\4\1\v6\0\0\0009\0\1\0009\0\2\0'\2\3\0B\0\2\2\b\0\0\0X\0\2�+\0\1\0X\1\1�+\0\2\0L\0\2\0\rnvim-0.5\bhas\afn\bvim\2\0", "condition", "vim-repeat")
then
        vim.cmd [[packadd vim-repeat]]
end

if
  try_loadstring("\27LJ\2\nH\0\0\3\0\4\1\v6\0\0\0009\0\1\0009\0\2\0'\2\3\0B\0\2\2\b\0\0\0X\0\2�+\0\1\0X\1\1�+\0\2\0L\0\2\0\rnvim-0.5\bhas\afn\bvim\2\0", "condition", "vim-fugitive")
then
        vim.cmd [[packadd vim-fugitive]]
        -- Config for: vim-fugitive
        try_loadstring("\27LJ\2\n�\1\0\0\6\0\n\0\0196\0\0\0'\2\1\0B\0\2\0029\1\2\0'\3\3\0'\4\4\0'\5\5\0B\1\4\0019\1\2\0'\3\3\0'\4\6\0'\5\a\0B\1\4\0019\1\2\0'\3\3\0'\4\b\0'\5\t\0B\1\4\1K\0\1\0\25<cmd>diffget //3<CR>\bgdl\25<cmd>diffget //2<CR>\bgdh\26<cmd>Gvdiffsplit!<CR>\15<leader>gd\6n\bmap\nutils\frequire\0", "config", "vim-fugitive")
end

if
  try_loadstring("\27LJ\2\nH\0\0\3\0\4\1\v6\0\0\0009\0\1\0009\0\2\0'\2\3\0B\0\2\2\b\0\0\0X\0\2�+\0\1\0X\1\1�+\0\2\0L\0\2\0\rnvim-0.5\bhas\afn\bvim\2\0", "condition", "vim-startify")
then
        vim.cmd [[packadd vim-startify]]
        -- Config for: vim-startify
        try_loadstring("\27LJ\2\n�\1\0\0\4\0\n\0\0216\0\0\0009\0\1\0)\1\n\0=\1\2\0006\0\0\0009\0\1\0)\1\1\0=\1\3\0006\0\0\0009\0\1\0004\1\3\0005\2\5\0005\3\6\0=\3\a\2>\2\1\0015\2\b\0005\3\t\0=\3\a\2>\2\2\1=\1\4\0K\0\1\0\1\2\0\0\22   Saved sessions\1\0\1\ttype\rsessions\vheader\1\2\0\0\20   Recent files\1\0\1\ttype\bdir\19startify_lists!startify_session_persistence\26startify_files_number\6g\bvim\0", "config", "vim-startify")
end

if
  try_loadstring("\27LJ\2\nH\0\0\3\0\4\1\v6\0\0\0009\0\1\0009\0\2\0'\2\3\0B\0\2\2\b\0\0\0X\0\2�+\0\1\0X\1\1�+\0\2\0L\0\2\0\rnvim-0.5\bhas\afn\bvim\2\0", "condition", "galaxyline.nvim")
then
        vim.cmd [[packadd galaxyline.nvim]]
        -- Config for: galaxyline.nvim
        try_loadstring("\27LJ\2\n*\0\0\3\0\2\0\0046\0\0\0'\2\1\0B\0\2\1K\0\1\0\15statusline\frequire\0", "config", "galaxyline.nvim")
end

if
  try_loadstring("\27LJ\2\nH\0\0\3\0\4\1\v6\0\0\0009\0\1\0009\0\2\0'\2\3\0B\0\2\2\b\0\0\0X\0\2�+\0\1\0X\1\1�+\0\2\0L\0\2\0\rnvim-0.5\bhas\afn\bvim\2\0", "condition", "tagbar")
then
        vim.cmd [[packadd tagbar]]
        -- Config for: tagbar
        try_loadstring("\27LJ\2\n�\1\0\0\6\0\v\0\0216\0\0\0'\2\1\0B\0\2\0029\1\2\0'\3\3\0'\4\4\0'\5\5\0B\1\4\0016\1\6\0009\1\a\1)\2\1\0=\2\b\0016\1\6\0009\1\a\1)\2\1\0=\2\t\0016\1\6\0009\1\a\1)\2\1\0=\2\n\1K\0\1\0\16tagbar_sort\21tagbar_autoclose\21tagbar_autofocus\6g\bvim\26<cmd>TagbarToggle<CR>\t<F8>\6n\bmap\nutils\frequire\0", "config", "tagbar")
end

END

catch
  echohl ErrorMsg
  echom "Error in packer_compiled: " .. v:exception
  echom "Please check your config for correctness"
  echohl None
endtry
horseinthesky commented 3 years ago

@wbthomason Regarding use {'~/.fzf', as = 'fzf', run = './install --all'} - and how am supposed to tell packer the repo address to download from?

So the desired behavior is to download the repo and run the install script.

kunzaatko commented 3 years ago

@wbthomason This is my packer_compiled

" Automatically generated packer.nvim plugin loader code

if !has('nvim-0.5')
  echohl WarningMsg
  echom "Invalid Neovim version for packer.nvim!"
  echohl None
  finish
endif

packadd packer.nvim

try

lua << END
local package_path_str = "/home/kunzaatko/.cache/nvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/?.lua;/home/kunzaatko/.cache/nvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/?/init.lua;/home/kunzaatko/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/?.lua;/home/kunzaatko/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/?/init.lua"
local install_cpath_pattern = "/home/kunzaatko/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/lua/5.1/?.so"
if not string.find(package.path, package_path_str, 1, true) then
  package.path = package.path .. ';' .. package_path_str
end

if not string.find(package.cpath, install_cpath_pattern, 1, true) then
  package.cpath = package.cpath .. ';' .. install_cpath_pattern
end

local function try_loadstring(s, component, name)
  local success, result = pcall(loadstring(s))
  if not success then
    print('Error running ' .. component .. ' for ' .. name)
    error(result)
  end
  return result
end

_G.packer_plugins = {
  ["FixCursorHold.nvim"] = {
    loaded = true,
    path = "/home/kunzaatko/.local/share/nvim/site/pack/packer/start/FixCursorHold.nvim"
  },
  ["comfortable-motion.vim"] = {
    config = { "\27LJ\2\nA\0\0\3\0\2\0\0046\0\0\0'\2\1\0B\0\2\1K\0\1\0&plugins.config.comfortable-motion\frequire\0" },
    loaded = true,
    path = "/home/kunzaatko/.local/share/nvim/site/pack/packer/start/comfortable-motion.vim"
  },
  ["completion-nvim"] = {
    config = { "\27LJ\2\n#\0\0\3\0\2\0\0046\0\0\0'\2\1\0B\0\2\1K\0\1\0\blsp\frequire\0" },
    loaded = false,
    needs_bufread = false,
    path = "/home/kunzaatko/.local/share/nvim/site/pack/packer/opt/completion-nvim"
  },
  ["formatter.nvim"] = {
    config = { "\27LJ\2\n8\0\0\3\0\2\0\0046\0\0\0'\2\1\0B\0\2\1K\0\1\0\29plugins.config.formatter\frequire\0" },
    loaded = false,
    needs_bufread = false,
    path = "/home/kunzaatko/.local/share/nvim/site/pack/packer/opt/formatter.nvim"
  },
  ["galaxyline.nvim"] = {
    config = { "\27LJ\2\n9\0\0\3\0\2\0\0046\0\0\0'\2\1\0B\0\2\1K\0\1\0\30plugins.config.galaxyline\frequire\0" },
    loaded = true,
    path = "/home/kunzaatko/.local/share/nvim/site/pack/packer/start/galaxyline.nvim"
  },
  ["gitsigns.nvim"] = {
    config = { "\27LJ\2\n7\0\0\3\0\2\0\0046\0\0\0'\2\1\0B\0\2\1K\0\1\0\28plugins.config.gitsigns\frequire\0" },
    loaded = true,
    path = "/home/kunzaatko/.local/share/nvim/site/pack/packer/start/gitsigns.nvim"
  },
  ["gruvbox.nvim"] = {
    config = { "\27LJ\2\nY\0\0\3\0\4\0\t6\0\0\0009\0\1\0'\2\2\0B\0\2\0016\0\0\0009\0\1\0'\2\3\0B\0\2\1K\0\1\0\24colorscheme gruvbox\22packadd lush.nvim\bcmd\bvim\0" },
    loaded = false,
    needs_bufread = false,
    path = "/home/kunzaatko/.local/share/nvim/site/pack/packer/opt/gruvbox.nvim"
  },
  ["julia-vim"] = {
    config = { "\27LJ\2\n4\0\0\3\0\2\0\0046\0\0\0'\2\1\0B\0\2\1K\0\1\0\25plugins.config.julia\frequire\0" },
    loaded = true,
    path = "/home/kunzaatko/.local/share/nvim/site/pack/packer/start/julia-vim"
  },
  kommentary = {
    loaded = true,
    path = "/home/kunzaatko/.local/share/nvim/site/pack/packer/start/kommentary"
  },
  ["lush.nvim"] = {
    loaded = true,
    path = "/home/kunzaatko/.local/share/nvim/site/pack/packer/start/lush.nvim"
  },
  ["nord-vim"] = {
    config = { "\27LJ\2\nV\0\0\3\0\4\0\t6\0\0\0009\0\1\0'\2\2\0B\0\2\0016\0\0\0009\0\1\0'\2\3\0B\0\2\1K\0\1\0\21colorscheme nord\22packadd lush.nvim\bcmd\bvim\0" },
    loaded = false,
    needs_bufread = false,
    path = "/home/kunzaatko/.local/share/nvim/site/pack/packer/opt/nord-vim"
  },
  ["nvim-autopairs"] = {
    config = { "\27LJ\2\n8\0\0\3\0\2\0\0046\0\0\0'\2\1\0B\0\2\1K\0\1\0\29plugins.config.autopairs\frequire\0" },
    loaded = true,
    path = "/home/kunzaatko/.local/share/nvim/site/pack/packer/start/nvim-autopairs"
  },
  ["nvim-lspconfig"] = {
    loaded = true,
    path = "/home/kunzaatko/.local/share/nvim/site/pack/packer/start/nvim-lspconfig"
  },
  ["nvim-treesitter"] = {
    config = { "\27LJ\2\n9\0\0\3\0\2\0\0046\0\0\0'\2\1\0B\0\2\1K\0\1\0\30plugins.config.treesitter\frequire\0" },
    loaded = true,
    path = "/home/kunzaatko/.local/share/nvim/site/pack/packer/start/nvim-treesitter"
  },
  ["nvim-treesitter-refactor"] = {
    loaded = true,
    path = "/home/kunzaatko/.local/share/nvim/site/pack/packer/start/nvim-treesitter-refactor"
  },
  ["nvim-treesitter-textobjects"] = {
    loaded = true,
    path = "/home/kunzaatko/.local/share/nvim/site/pack/packer/start/nvim-treesitter-textobjects"
  },
  ["nvim-web-devicons"] = {
    loaded = true,
    path = "/home/kunzaatko/.local/share/nvim/site/pack/packer/start/nvim-web-devicons"
  },
  ["packer.nvim"] = {
    loaded = false,
    needs_bufread = false,
    path = "/home/kunzaatko/.local/share/nvim/site/pack/packer/opt/packer.nvim"
  },
  ["plenary.nvim"] = {
    loaded = true,
    path = "/home/kunzaatko/.local/share/nvim/site/pack/packer/start/plenary.nvim"
  },
  ["rust.vim"] = {
    config = { "\27LJ\2\n3\0\0\3\0\2\0\0046\0\0\0'\2\1\0B\0\2\1K\0\1\0\24plugins.config.rust\frequire\0" },
    loaded = true,
    path = "/home/kunzaatko/.local/share/nvim/site/pack/packer/start/rust.vim"
  },
  ["sxhkd-vim"] = {
    loaded = true,
    path = "/home/kunzaatko/.local/share/nvim/site/pack/packer/start/sxhkd-vim"
  },
  ultisnips = {
    after = { "vim-snippets" },
    only_config = true
  },
  undotree = {
    commands = { "UndotreeToggle" },
    config = { "\27LJ\2\n7\0\0\3\0\2\0\0046\0\0\0'\2\1\0B\0\2\1K\0\1\0\28plugins.config.undotree\frequire\0" },
    loaded = false,
    needs_bufread = false,
    path = "/home/kunzaatko/.local/share/nvim/site/pack/packer/opt/undotree"
  },
  ["vim-abolish"] = {
    loaded = true,
    path = "/home/kunzaatko/.local/share/nvim/site/pack/packer/start/vim-abolish"
  },
  ["vim-cool"] = {
    loaded = true,
    path = "/home/kunzaatko/.local/share/nvim/site/pack/packer/start/vim-cool"
  },
  ["vim-easymotion"] = {
    config = { "\27LJ\2\n9\0\0\3\0\2\0\0046\0\0\0'\2\1\0B\0\2\1K\0\1\0\30plugins.config.easymotion\frequire\0" },
    loaded = true,
    path = "/home/kunzaatko/.local/share/nvim/site/pack/packer/start/vim-easymotion"
  },
  ["vim-fish"] = {
    loaded = true,
    path = "/home/kunzaatko/.local/share/nvim/site/pack/packer/start/vim-fish"
  },
  ["vim-fugitive"] = {
    commands = { "Gstatus", "Gblame", "Gpush", "Gpull" },
    loaded = false,
    needs_bufread = true,
    path = "/home/kunzaatko/.local/share/nvim/site/pack/packer/opt/vim-fugitive"
  },
  ["vim-repeat"] = {
    loaded = true,
    path = "/home/kunzaatko/.local/share/nvim/site/pack/packer/start/vim-repeat"
  },
  ["vim-snippets"] = {
    config = { "\27LJ\2\n7\0\0\3\0\2\0\0046\0\0\0'\2\1\0B\0\2\1K\0\1\0\28plugins.config.snippets\frequire\0" },
    load_after = {},
    loaded = false,
    needs_bufread = false,
    path = "/home/kunzaatko/.local/share/nvim/site/pack/packer/opt/vim-snippets"
  },
  ["vim-startify"] = {
    config = { "\27LJ\2\n7\0\0\3\0\2\0\0046\0\0\0'\2\1\0B\0\2\1K\0\1\0\28plugins.config.startify\frequire\0" },
    loaded = true,
    path = "/home/kunzaatko/.local/share/nvim/site/pack/packer/start/vim-startify"
  },
  ["vim-startuptime"] = {
    commands = { "StartupTime" },
    config = { "vim.g.startuptime_tries = 10" },
    loaded = false,
    needs_bufread = false,
    path = "/home/kunzaatko/.local/share/nvim/site/pack/packer/opt/vim-startuptime"
  },
  ["vim-surround"] = {
    loaded = true,
    path = "/home/kunzaatko/.local/share/nvim/site/pack/packer/start/vim-surround"
  },
  ["vim-toml"] = {
    loaded = true,
    path = "/home/kunzaatko/.local/share/nvim/site/pack/packer/start/vim-toml"
  },
  ["vim-wordmotion"] = {
    loaded = true,
    path = "/home/kunzaatko/.local/share/nvim/site/pack/packer/start/vim-wordmotion"
  },
  vimtex = {
    config = { "\27LJ\2\n5\0\0\3\0\2\0\0046\0\0\0'\2\1\0B\0\2\1K\0\1\0\26plugins.config.vimtex\frequire\0" },
    loaded = true,
    path = "/home/kunzaatko/.local/share/nvim/site/pack/packer/start/vimtex"
  },
  ["zephyr-nvim"] = {
    loaded = true,
    path = "/home/kunzaatko/.local/share/nvim/site/pack/packer/start/zephyr-nvim"
  }
}

-- Config for: nvim-treesitter
try_loadstring("\27LJ\2\n9\0\0\3\0\2\0\0046\0\0\0'\2\1\0B\0\2\1K\0\1\0\30plugins.config.treesitter\frequire\0", "config", "nvim-treesitter")
-- Config for: julia-vim
try_loadstring("\27LJ\2\n4\0\0\3\0\2\0\0046\0\0\0'\2\1\0B\0\2\1K\0\1\0\25plugins.config.julia\frequire\0", "config", "julia-vim")
-- Config for: ultisnips
try_loadstring("\27LJ\2\n8\0\0\3\0\2\0\0046\0\0\0'\2\1\0B\0\2\1K\0\1\0\29plugins.config.ultisnips\frequire\0", "config", "ultisnips")
-- Config for: galaxyline.nvim
try_loadstring("\27LJ\2\n9\0\0\3\0\2\0\0046\0\0\0'\2\1\0B\0\2\1K\0\1\0\30plugins.config.galaxyline\frequire\0", "config", "galaxyline.nvim")
-- Config for: vim-easymotion
try_loadstring("\27LJ\2\n9\0\0\3\0\2\0\0046\0\0\0'\2\1\0B\0\2\1K\0\1\0\30plugins.config.easymotion\frequire\0", "config", "vim-easymotion")
-- Config for: nvim-autopairs
try_loadstring("\27LJ\2\n8\0\0\3\0\2\0\0046\0\0\0'\2\1\0B\0\2\1K\0\1\0\29plugins.config.autopairs\frequire\0", "config", "nvim-autopairs")
-- Config for: gitsigns.nvim
try_loadstring("\27LJ\2\n7\0\0\3\0\2\0\0046\0\0\0'\2\1\0B\0\2\1K\0\1\0\28plugins.config.gitsigns\frequire\0", "config", "gitsigns.nvim")
-- Config for: vimtex
try_loadstring("\27LJ\2\n5\0\0\3\0\2\0\0046\0\0\0'\2\1\0B\0\2\1K\0\1\0\26plugins.config.vimtex\frequire\0", "config", "vimtex")
-- Config for: rust.vim
try_loadstring("\27LJ\2\n3\0\0\3\0\2\0\0046\0\0\0'\2\1\0B\0\2\1K\0\1\0\24plugins.config.rust\frequire\0", "config", "rust.vim")
-- Config for: comfortable-motion.vim
try_loadstring("\27LJ\2\nA\0\0\3\0\2\0\0046\0\0\0'\2\1\0B\0\2\1K\0\1\0&plugins.config.comfortable-motion\frequire\0", "config", "comfortable-motion.vim")
-- Config for: vim-startify
try_loadstring("\27LJ\2\n7\0\0\3\0\2\0\0046\0\0\0'\2\1\0B\0\2\1K\0\1\0\28plugins.config.startify\frequire\0", "config", "vim-startify")
-- Conditional loads
if
  false
then
    vim.cmd [[packadd gruvbox.nvim]]
    -- Config for: gruvbox.nvim
    try_loadstring("\27LJ\2\nY\0\0\3\0\4\0\t6\0\0\0009\0\1\0'\2\2\0B\0\2\0016\0\0\0009\0\1\0'\2\3\0B\0\2\1K\0\1\0\24colorscheme gruvbox\22packadd lush.nvim\bcmd\bvim\0", "config", "gruvbox.nvim")
end

if
  true
then
    vim.cmd [[packadd nord-vim]]
    -- Config for: nord-vim
    try_loadstring("\27LJ\2\nV\0\0\3\0\4\0\t6\0\0\0009\0\1\0'\2\2\0B\0\2\0016\0\0\0009\0\1\0'\2\3\0B\0\2\1K\0\1\0\21colorscheme nord\22packadd lush.nvim\bcmd\bvim\0", "config", "nord-vim")
end

-- Load plugins in order defined by `after`
vim.cmd [[ packadd vim-snippets ]]

-- Config for: vim-snippets
try_loadstring("\27LJ\2\n7\0\0\3\0\2\0\0046\0\0\0'\2\1\0B\0\2\1K\0\1\0\28plugins.config.snippets\frequire\0", "config", "vim-snippets")

-- Command lazy-loads
vim.cmd [[command! -nargs=* -range -bang -complete=file UndotreeToggle lua require("packer.load")({'undotree'}, { cmd = "UndotreeToggle", l1 = <line1>, l2 = <line2>, bang = <q-bang>, args = <q-args> }, _G.packer_plugins)]]
vim.cmd [[command! -nargs=* -range -bang -complete=file StartupTime lua require("packer.load")({'vim-startuptime'}, { cmd = "StartupTime", l1 = <line1>, l2 = <line2>, bang = <q-bang>, args = <q-args> }, _G.packer_plugins)]]
vim.cmd [[command! -nargs=* -range -bang -complete=file Gpull lua require("packer.load")({'vim-fugitive'}, { cmd = "Gpull", l1 = <line1>, l2 = <line2>, bang = <q-bang>, args = <q-args> }, _G.packer_plugins)]]
vim.cmd [[command! -nargs=* -range -bang -complete=file Gstatus lua require("packer.load")({'vim-fugitive'}, { cmd = "Gstatus", l1 = <line1>, l2 = <line2>, bang = <q-bang>, args = <q-args> }, _G.packer_plugins)]]
vim.cmd [[command! -nargs=* -range -bang -complete=file Gblame lua require("packer.load")({'vim-fugitive'}, { cmd = "Gblame", l1 = <line1>, l2 = <line2>, bang = <q-bang>, args = <q-args> }, _G.packer_plugins)]]
vim.cmd [[command! -nargs=* -range -bang -complete=file Gpush lua require("packer.load")({'vim-fugitive'}, { cmd = "Gpush", l1 = <line1>, l2 = <line2>, bang = <q-bang>, args = <q-args> }, _G.packer_plugins)]]

vim.cmd [[augroup packer_load_aucmds]]
vim.cmd [[au!]]
  -- Filetype lazy-loads
vim.cmd [[au FileType tex ++once lua require("packer.load")({'formatter.nvim'}, { ft = "tex" }, _G.packer_plugins)]]
vim.cmd [[au FileType rust ++once lua require("packer.load")({'formatter.nvim'}, { ft = "rust" }, _G.packer_plugins)]]
vim.cmd [[au FileType cpp ++once lua require("packer.load")({'formatter.nvim'}, { ft = "cpp" }, _G.packer_plugins)]]
vim.cmd [[au FileType html ++once lua require("packer.load")({'formatter.nvim'}, { ft = "html" }, _G.packer_plugins)]]
vim.cmd [[au FileType lua ++once lua require("packer.load")({'formatter.nvim'}, { ft = "lua" }, _G.packer_plugins)]]
vim.cmd [[au FileType c ++once lua require("packer.load")({'formatter.nvim'}, { ft = "c" }, _G.packer_plugins)]]
vim.cmd [[au FileType python ++once lua require("packer.load")({'formatter.nvim'}, { ft = "python" }, _G.packer_plugins)]]
vim.cmd [[au FileType json ++once lua require("packer.load")({'formatter.nvim'}, { ft = "json" }, _G.packer_plugins)]]
vim.cmd [[au FileType javascript ++once lua require("packer.load")({'formatter.nvim'}, { ft = "javascript" }, _G.packer_plugins)]]
vim.cmd("augroup END")
END

catch
  echohl ErrorMsg
  echom "Error in packer_compiled: " .. v:exception
  echom "Please check your config for correctness"
  echohl None
endtry
wbthomason commented 3 years ago

@horseinthesky

how am supposed to tell packer the repo address to download from?

Does plug download fzf to the directory given to dir? Assuming so, you can't directly do that with packer, since packer is based on native packages and doesn't do rtp mangling.

That said, for fzf in particular, you can just install it anywhere and run the install script and it should work. You ought to be able to use use {'junegunn/fzf', run='./install --all'} and packer will download fzf for you and run the install script to set it up.

wbthomason commented 3 years ago

@horseinthesky: Just as a sanity check, have you run a PackerUpdate or PackerSync since making fzf an opt plugin?

horseinthesky commented 3 years ago

@horseinthesky: Just as a sanity check, have you run a PackerUpdate or PackerSync since making fzf an opt plugin?

No, but I did completely removed the whole pack dir (and packer_compiled file) many times to make a new clean install.

wbthomason commented 3 years ago

Ah, this is a weird case in how we handle transitive optness. Right now, transitive opt is only applied if a parent plugin was manually marked opt. Arguably the right thing to do is to apply transitive opt regardless of whether the parent is manually or automatically marked opt, and allow specifying opt=false in the child in case someone wants a dependency of an opt plugin to not be opt itself.

This is going to take a bit of refactoring; I need to think about the cleanest way to handle this.

Thanks again for the report!