codesnap.nvim icon indicating copy to clipboard operation
codesnap.nvim copied to clipboard

Windows guidance

Open uhillbom opened this issue 1 year ago • 9 comments

Hi,

Would be good with some guidance of how to do this in a Windows 10 environment. I tried to compile with both make and cargo / rust from cygwin.

make issue

Unknown platform
cp: cannot stat 'lua/Unknowngenerator.so': No such file or directory
make: *** [makefile:2: build] Error 1

cargo failed in a later state with unresolved symbols refs.

error LNK2019: unresolved external symbol

uhillbom avatar Apr 04 '24 11:04 uhillbom

Hi there, thx for making the issue report, unfortunately, Windows is not supported yet.

mistricky avatar Apr 04 '24 11:04 mistricky

+2 whenever that happens then

uhillbom avatar Apr 04 '24 11:04 uhillbom

I've pinned to v0.0.11 to get it to work on windows.

ekshore avatar Apr 04 '24 15:04 ekshore

Look forward to supporting Windows in the future, this is a cool plugin.

iamxiaojianzheng avatar Jul 08 '24 09:07 iamxiaojianzheng

If you are on Windows, you can follow this PR https://github.com/mistricky/codesnap.nvim/pull/83, that implements support for Windows WSL, but still in WIP

mistricky avatar Jul 08 '24 10:07 mistricky

Hahaha, it's a pity that I use gitbash. At present, version v0.0.11 can be used normally.

iamxiaojianzheng avatar Jul 08 '24 10:07 iamxiaojianzheng

For those interested in the configuration I've had working on windows via pinning v.0.0.11

return {
    "mistricky/codesnap.nvim",
    lazy = "true",
    build = "make",
    cmd = "CodeSnapPreviewOn",
    commit = "14327aada69623c1b974ba20a6640856f91a7cb3",
    tag = "v0.0.11",
    pin = true,
    opts = {
        mac_windows_bar = true,
        watermark = "",
        preview_title = "CodeSnap.nvim",
        editor_font_family = "Hack nerd Font Mono",
    },
    config = function(_, opts)
        require("codesnap").setup(opts)
    end,
}

ekshore avatar Jul 08 '24 23:07 ekshore

For those interested in the configuration I've had working on windows via pinning v.0.0.11

I've since convinced work to get me a Mac so I'm no longer using this configuration, your milage may very.

ekshore avatar Jul 08 '24 23:07 ekshore