Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

E492: Not an editor command: PaqList #78

Closed
dshumakerUT opened this issue Sep 23, 2021 · 1 comment
Closed

E492: Not an editor command: PaqList #78

dshumakerUT opened this issue Sep 23, 2021 · 1 comment

Comments

@dshumakerUT
Copy link

dshumakerUT commented Sep 23, 2021

After installing paq or paq-nvim it seems to work. However opening up a new editor and typing

:PaqList

I get "E492: Not an editor command: PaqList" error in nvim.

Here is the contents of my init.lua

local fn = vim.fn

local install_path = fn.stdpath('data') .. '/site/pack/paqs/start/paq-nvim'

if fn.empty(fn.glob(install_path)) > 0 then
  fn.system({'git', 'clone', '--depth=1', 'https://github.com/savq/paq-nvim.git', install_path})
end

-- :PaqSync and all paq commands are not found when you load this file into nvim.  Don't know why
-- It makes paq unusable imo. 9-23-2021
local paq = require("paq")
paq {
 'savq/paq-nvim';
 'tpope/vim-sensible';
 'tpope/vim-fugitive';
 'tpope/vim-scriptease';
 'mkitt/tabline.vim';
 'nelstrom/vim-markdown-folding';
 'plasticboy/vim-markdown';
}
-- require('vgit').setup()
-- require('telescope').setup {
--     extensions = {
--         fzy_native = {
--             override_generic_sorter = false,
--             override_file_sorter = true,
--         }
--     }
-- }
-- require('telescope').load_extension('fzy')
-- require('telescope').load_extension('fzy_native')
-- require('telescope').load_extension('z')

To explain it a different way: If I load ~/.config/nvim/lua/init.lua into nvim and type :source % and then :PaqList I get this output

Installed packages:
     paq-nvim
     tabline.vim
     vim-fugitive
     vim-markdown
     vim-markdown-folding
     vim-scriptease
     vim-sensible
Press ENTER or type command to continue

But if editing any other file and then just typing :PaqList I get the error.

This must mean my paq or init.lua is not installed correctly???

Any help or suggestions appreciated.

@dshumakerUT
Copy link
Author

This no longer an issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant