Open TioeAre opened 9 months ago
Did you install ripgrep/fd using snap as well? If so, there's some privilege confinement rules that won't let those tools function properly within neovim.
no, I installed fd
and ripgrep
by apt
. Should I increase the permissions of someone? Thank you very much.
Did you install ripgrep/fd using snap as well? If so, there's some privilege confinement rules that won't let those tools function properly within neovim.
Maybe neovim being installed via snap causes the issue as well. I'm far from an expert on snap but I don't think it's a permissions issue. I think it's the way snap installs and compiles programs. I think you can install it with flags to relax the confinement. I'm not entirely sure.
I would try using neovim's appimage to first see if the snap installation of neovim is the issue. We can continue from there.
Maybe neovim being installed via snap causes the issue as well. I'm far from an expert on snap but I don't think it's a permissions issue. I think it's the way snap installs and compiles programs. I think you can install it with flags to relax the confinement. I'm not entirely sure.
I would try using neovim's appimage to first see if the snap installation of neovim is the issue. We can continue from there.
I have found that telescope works well in the appImage version of nvim (from gitHub release), but I am still unsure why it is not functioning properly in the nvim installed via snap
.
So far, it seems that other plugins do not have this issue. I hope to draw the developers' attention to this matter. Thanks very much.
Thanks for confirming. I'm not sure why either. I'll leave this issue open until we can find a valid reason or fix.
I had same issue #2858 on archlinux, try to uninstall fd and ripgrep from your machine.
@aminerwx thanks for you recommend, but I am not sure if it is fd/ripgrep causes my problem, I have tried to Appimage
instead of snap
, and it works well, and there is just one version of fd/ripgrep in my machine installed by apt
,
The problem seems to become that neovim
installed by Appimage
can use fd/ripgrep
installed by apt
, but calling telescope in neovim installed by snap
does not work properly. However, others such as lsp
and treesitter
can still work normally.
Maybe neovim being installed via snap causes the issue as well. I'm far from an expert on snap but I don't think it's a permissions issue. I think it's the way snap installs and compiles programs. I think you can install it with flags to relax the confinement. I'm not entirely sure. I would try using neovim's appimage to first see if the snap installation of neovim is the issue. We can continue from there.
I have found that telescope works well in the appImage version of nvim (from gitHub release), but I am still unsure why it is not functioning properly in the nvim installed via
snap
. So far, it seems that other plugins do not have this issue. I hope to draw the developers' attention to this matter. Thanks very much.
I am facing the same issue as well. The :checkhealth telescope command is showing all OK. But grep_find and file_preview are not working. I perform all the instructions from the official docs and also checked all the forums but the issue isn't resolving. Please fix this. I also installed nvim from snap store. The apt package manage should update the softwares, I had to use snap all the time because of the latest versions available but it creates problem all the time with the sudo and the user preferences.
FOUND MY SOLUTION
I checked in my machine the apt couldn't recognize the ripgrep. So I removed the ripgrep using sudo snap command, then installed it again with apt-get command. Now the grep and file preview is working fine. I suggest installing the ripgrep from apt-get. Dont install it from snap store.
Description
When I use nvim installed with
snap
, I cannot use telescope normally. No error is reported, but all search functions cannot be used, nor can I switch the telescope version. This picture show it withnvim
on path of~/
Neovim version
Operating system and version
ubuntu 20.04
Telescope version / branch / rev
telescope 0.1.5
checkhealth telescope
Steps to reproduce
sudo snap install nvim --classic
and uselazy.nvim
to install telescope with~/.config/nvim/lua/plugins/telescope.lua
like thislocal keymap = vim.keymap
local config = function() local telescope = require('telescope') telescope.setup({ defaults = { mappings = { i = { [''] = 'move_selection_next',
[''] = 'move_selection_previous'
}
}
},
pickers = {
find_files = {
theme = 'dropdown',
previewer = false
-- hidden = true
},
live_grep = {
theme = 'dropdown',
previewer = false
},
find_buffers = {
theme = 'dropdown',
previewer = false
}
}
})
end
return { 'nvim-telescope/telescope.nvim', -- lazy = false, tag = '0.1.5', dependencies = {'nvim-lua/plenary.nvim', 'nvim-treesitter/nvim-treesitter'}, cmd = "Telescope", config = config, defaults = { file_ignore_patterns = {'node_modules', '.git'} }, keys = { { "ff",
":Telescope find_files",
desc = "find files"
}, {
"fs",
":Telescope grep_string",
desc = "grep string"
}, {
"fg",
":Telescope live_grep",
desc = "live grep string"
}, {
"fr",
":Telescope resume",
desc = "resume last search window"
}}
}