-
Notifications
You must be signed in to change notification settings - Fork 22
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
attempt to get length of fi eld 'YANKY_HISTORY' (a nil value) #1
Comments
Hi and thanks for the feedback. I'll take a look at this as soon as possible. |
Made a fix, could you update and confirm that's ok ? FYI : This plugin is under development and at a really early stage, I'm working on really hard to have something really cool. So : expects bug, feel free to send feedbacks and thanks for trying this :) |
Yeah this been a great plugin, and very much looking forward to see what is to come . Still getting the error it seems. even with min config Error detected while processing TextYankPost Autocommands for "*":
E5108: Error executing lua .../site/pack/packer/start/yanky.nvim/lua/yanky/history.lua:15: attempt to index field 'sto
rage' (a nil value)
stack traceback:
.../site/pack/packer/start/yanky.nvim/lua/yanky/history.lua:15: in function 'push'
/tmp/nvim/site/pack/packer/start/yanky.nvim/lua/yanky.lua:151: in function 'on_yank'
[string ":lua"]:1: in main chunk```
min config vim.cmd([[set runtimepath=$VIMRUNTIME]])
vim.cmd([[set packpath=/tmp/nvim/site]])
vim.cmd([[set clipboard = "unnamedplus"]])
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",
"akinsho/bufferline.nvim",
{
"nvim-telescope/telescope.nvim",
requires = {
"nvim-lua/plenary.nvim",
},
},
{
"gbprod/yanky.nvim",
},
},
config = {
package_root = package_root,
compile_path = install_path .. "/plugin/packer_compiled.lua",
display = { non_interactive = true },
},
})
end
_G.load_config = function()
require("yanky").setup({
ring = {
history_length = 10,
storage = "shada",
},
})
require("bufferline").setup({
options = {
mode = "buffers",
diagnostics = "nvim_diagnostic",
always_show_bufferline = false,
},
})
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()]])
~
~
~```
When i try yy or dd or any sort of yank command you get this error :) |
It should works now |
setup
The text was updated successfully, but these errors were encountered: