silicon.lua icon indicating copy to clipboard operation
silicon.lua copied to clipboard

Only inserts the first line

Open vuki656 opened this issue 2 years ago • 4 comments

Hey,

thanks for the cool plugin.

It used to work as expected but now when I yank some text and invoke the create screenshot command it only outputs the first line like so image

Here is my config

local silicon = require("silicon")

local set_keymap = require("utils.set-keymap")

silicon.setup({ theme = "TwoDark" })

set_keymap({
    modes = { "n" },
    key = "<LEADER>ss",
    actions = function()
        silicon.visualise_api({ to_clip = true })
    end,
    description = "Screenshot yanked/copied code",
})

Am I doing something wrong?

vuki656 avatar Nov 10 '22 20:11 vuki656

me too, how to resolve?

TBBtianbaoboy avatar Nov 16 '22 05:11 TBBtianbaoboy

Sorry but I'm a bit busy with academics and don't have slightest of time for a week straight. So this issue and others might take some time.

0oAstro avatar Nov 16 '22 16:11 0oAstro

me too, how to resolve?

I set it to a previous commit like so and it works:

        use({
            "narutoxy/silicon.lua",
            config = load_file("screenshot"),
            commit = "3223d26456f728870cacab91662d03bbace6e354",
            requires = { "nvim-lua/plenary.nvim" },
        })

vuki656 avatar Mar 01 '23 21:03 vuki656

@vuki656 thanks for resolving.

TBBtianbaoboy avatar Mar 31 '23 05:03 TBBtianbaoboy