cheatsheet.nvim
cheatsheet.nvim copied to clipboard
Error on detected while processing: telescope.actions not found
I am trying to make this plugin work on windows, I have all the setup for neovim 0.6 and other plugins working, including Telescope and others. when I load Cheatsheet
command, I get the following error:
Error detected while processing function <SNR>67_Cheatsheet:
line 5:
E5108: Error executing lua ...art\cheatsheet.nvim/lua/cheatsheet/telescope/actions.lua:1: module 'telescope.actions' not found:
no field package.preload['telescope.actions']
no file '.\telescope\actions.lua'
no file 'C:\tools\neovim\Neovim\bin\lua\telescope\actions.lua'
no file 'C:\tools\neovim\Neovim\bin\lua\telescope\actions\init.lua'
no file 'C:\Users\Spark\AppData\Local\Temp\nvim\packer_hererocks\2.1.0-beta3\share\lua\5.1\telescope\actions.lua'
no file 'C:\Users\Spark\AppData\Local\Temp\nvim\packer_hererocks\2.1.0-beta3\share\lua\5.1\telescope\actions\init.lua'
no file 'C:\Users\Spark\AppData\Local\Temp\nvim\packer_hererocks\2.1.0-beta3\lib\luarocks\rocks-5.1\telescope\actions.lua'
no file 'C:\Users\Spark\AppData\Local\Temp\nvim\packer_hererocks\2.1.0-beta3\lib\luarocks\rocks-5.1\telescope\actions\init.lua'
no file '.\telescope\actions.dll'
no file 'C:\tools\neovim\Neovim\bin\telescope\actions.dll'
no file 'C:\tools\neovim\Neovim\bin\loadall.dll'
no file 'C:\Users\Spark\AppData\Local\Temp\nvim\packer_hererocks\2.1.0-beta3\lib\lua\5.1\telescope\actions.so'
no file '.\telescope.dll'
no file 'C:\tools\neovim\Neovim\bin\telescope.dll'
no file 'C:\tools\neovim\Neovim\bin\loadall.dll'
no file 'C:\Users\Spark\AppData\Local\Temp\nvim\packer_hererocks\2.1.0-beta3\lib\lua\5.1\telescope.so'
stack traceback:
[C]: in function 'require'
...art\cheatsheet.nvim/lua/cheatsheet/telescope/actions.lua:1: in main chunk
[C]: in function 'require'
...k\packer\start\cheatsheet.nvim/lua/cheatsheet/config.lua:26: in main chunk
[C]: in function 'require'
...ack\packer\start\cheatsheet.nvim/lua/cheatsheet/init.lua:2: in main chunk
[C]: in function 'require'
[string ":lua"]:1: in main chunk
Not sure what went wrong here! Let me know if you need any other logs/information from my side.
Just tested on mac as well, same error there as well.
@Sparkenstein This happened to me because telescope was marked as optional previously in packer. I was able to force it to load by adding vim.cmd[[packadd telescope.nvim]]
to the config section.
use({
"nvim-telescope/telescope.nvim",
tag = "0.1.0",
opt = true,
requires = { { "nvim-lua/plenary.nvim" } },
cmd = { "Telescope" },
config = function()
require("plugins.telescope")
end,
})
use({
"sudormrfbin/cheatsheet.nvim",
requires = {
"nvim-telescope/telescope.nvim",
"nvim-lua/popup.nvim",
"nvim-lua/plenary.nvim",
},
cmd = { "Cheatsheet", "CheatsheetEdit" },
config = function()
vim.cmd([[packadd telescope.nvim]])
local cheatsheet = require("cheatsheet")
cheatsheet.setup({
bundled_cheatsheets = true,
bundled_plugin_cheatsheets = true,
})
end,
})