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

Adding packloadall to init.vim leads to E492: Not an editor command: Telescope #2203

Open
cmoralesmx opened this issue Oct 19, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@cmoralesmx
Copy link

Description

I am trying to setup neovim to use Telescope together with dense-analysis/ale. According to their instructions I need to add packloadall to the very end of the init.vim file. When I do it and I run :Telescope find_files, I get the error:

E492: Not an editor command: Telescope find_files

If I remove the instruction packloadall, Telescope work as expected, I can search my files the usual way.
I have tested this several times and I have reproducibility even with a clean nvim environment.

Neovim version

:version                                                                                                  
NVIM v0.8.0
Build type: Release
LuaJIT 2.1.0-beta3
Compiled by builduser

Features: +acl +iconv +tui
See ":help feature-compile"

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "/usr/share/nvim"

Run :checkhealth for more info

Operating system and version

Arch Linux, kernel 6.02

Telescope version / branch / rev

telescope 0.1.0

checkhealth telescope

[No Name]  [Scratch]                                                                                              X

telescope: require("telescope.health").check()
========================================================================
## Checking for required plugins
  - OK: plenary installed.
  - WARNING: nvim-treesitter not found. 
 
## Checking external dependencies
  - OK: rg: found ripgrep 13.0.0
  - WARNING: fd: not found. Install [sharkdp/fd](https://github.com/sharkdp/fd) for extended capabilities
 
## ===== Installed extensions =====

~
~
~
~
~
~
~
~                                                    
~
~                                    
~                                              
~
~                                   
~                                   
~                                   
~                                   
~
~                                              
~                                   
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
[Scratch]                                                                                         12,36          All
-- VISUAL --                                                                                             11

Steps to reproduce

  1. Install vim-plug according to their instructions by doing
sh -c 'curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug.vim --create-dirs \
       https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
  1. nvim -nu ~/.config/nvim/init.vim
  2. :PlugInstall
  3. checkhealth telescope same with uppercase Telescope
  4. :qa!
  5. nvim -nu ~/.config/nvim/init.vim
  6. :Telescope find_files

Expected behavior

I expect to get Telescope's search window

Actual behavior

E492: Not an editor command: Telescope find_files

Minimal config

call plug#begin()
Plug 'nvim-lua/plenary.nvim'
Plug 'nvim-telescope/telescope.nvim', { 'tag': '0.1.0'}

call plug#end()
packloadall
@cmoralesmx cmoralesmx added the bug Something isn't working label Oct 19, 2022
@cmoralesmx cmoralesmx changed the title Adding packloadall to init.vim leads to Adding packloadall to init.vim leads to E492: Not an editor command: Telescope Oct 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant