Closed chuygil closed 3 years ago
Maybe another member has an idea, but I cannot immediately see as to why that would happen.
Does this issue also occur with the minimal_init.lua
? We have the minimal config for especially such cases.
nvim -nu minimal_init.lua
and then of course :Telescope find_files
.
-- minimal_init.lua
vim.cmd [[set runtimepath=$VIMRUNTIME]]
vim.cmd [[set packpath=/tmp/nvim/site]]
local package_root = '/tmp/nvim/site/pack'
local install_path = package_root .. '/packer/start/packer.nvim'
local function load_plugins()
require('packer').startup {
{
'wbthomason/packer.nvim',
{
'nvim-telescope/telescope.nvim',
requires = {
'nvim-lua/plenary.nvim',
{ 'nvim-telescope/telescope-fzf-native.nvim', run = 'make' },
},
},
-- ADD PLUGINS THAT ARE _NECESSARY_ FOR REPRODUCING THE ISSUE
},
config = {
package_root = package_root,
compile_path = install_path .. '/plugin/packer_compiled.lua',
display = { non_interactive = true },
},
}
end
_G.load_config = function()
require('telescope').setup()
require('telescope').load_extension('fzf')
-- ADD INIT.LUA SETTINGS THAT ARE _NECESSARY_ FOR REPRODUCING THE ISSUE
end
if vim.fn.isdirectory(install_path) == 0 then
print("Installing Telescope and dependencies.")
vim.fn.system { 'git', 'clone', '--depth=1', 'https://github.com/wbthomason/packer.nvim', install_path }
end
load_plugins()
require('packer').sync()
vim.cmd [[autocmd User PackerComplete ++once echo "Ready!" | lua load_config()]]
I will try the minimal config. I have attached a video, hope this helps.
Closing this because I'm quite confident that this is more of a user config issue and I've gotten no response to as to whether it works with minimal init or not.
Please let me know if there's more we can do. Happy to reopen in that case.
I am getting more or less the same issue. My Telescope my configuration is the default, only Telescope related changes are some mappings. But find_files
works just fine for me, instead I am getting the same behaviour with soem of the "symbols" related pickers, specifically symbols
and lsp_workspace_symbols
, while lsp_document_symbols
and lsp_dynamic_workspace_symbols
work just fine. I don't think the issue is LSP, the config is just the default lspconfig
, because other LSP pickers work just fine. Tested this with gopls
and tsserver
.
Please open an issue that provides a repro with the minimal config above and lspconfig. Most of these issues stem from the fact that you have some plugin or setting or interaction that materially interferes.
My config is still written in Vim script, so I am not sure what to do with the issue wizard which is asking for a Lua config. Is Vim script no supported anymore? I am able to repro the issue even with just the following:
call plug#begin()
Plug 'neovim/nvim-lspconfig'
Plug 'nvim-lua/plenary.nvim'
Plug 'nvim-telescope/telescope.nvim'
call plug#end()
lua << EOF
require'lspconfig'.gopls.setup{}
require'lspconfig'.tsserver.setup{}
require'telescope'.setup{}
EOF
Vimscript is supported. In any case, please don't hijack other issues and fill out the full form (incl nvim version, health check, everything).
Closing this because I'm quite confident that this is more of a user config issue and I've gotten no response to as to whether it works with minimal init or not.
Please let me know if there's more we can do. Happy to reopen in that case.
I apologize for the late response. It works fine with the minimal config. I'm pretty sure its something with my nvim-cmp config, haven't have this issue since I disabled it. Anyways, I appreciate the help!
Description
When calling
find_files
the prompt/preview gui closes really fast and puts me in insert mode.Neovim version
NVIM v0.6.0-dev+569-g2ecf0a4c6 Build type: RelWithDebInfo LuaJIT 2.1.0-beta3
Operating system and version
Fedora Workstation 35
checkhealth telescope
Steps to reproduce
nnoremap <leader>ff <cmd>Telescope find_files<cr>
Lua config setup;
Expected behavior
Open up find_files prompt/preview gui
Actual behavior
When calling
find_files
the prompt/preview gui closes really fast and puts me in insert mode.https://user-images.githubusercontent.com/59382692/141358354-9d1af2a8-ede3-4bc7-b97d-7879eca38134.mp4
Minimal config