Giter VIP home page Giter VIP logo

Comments (4)

gbprod avatar gbprod commented on July 21, 2024 1

Hi and thanks for the feedback. I'll take a look at this as soon as possible.

from yanky.nvim.

gbprod avatar gbprod commented on July 21, 2024

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 :)

from yanky.nvim.

vsedov avatar vsedov commented on July 21, 2024

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 :)

from yanky.nvim.

gbprod avatar gbprod commented on July 21, 2024

It should works now
Thanks !

from yanky.nvim.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.