Skip to content

mimikun/oil-image-preview.nvim

Repository files navigation

oil-image-preview.nvim

WORK IN PROGRESS

Requirements

  • Neovim HEAD or nightly
    • other version not tested
  • WezTerm

Windows

Linux

WSL

  • SHOULD BE INSTALL IN SSD.
    • In the case of HDD, it takes a long time.
  • Run script:
    • sudo ln -s "/mnt/c/Program Files/PowerShell/7/pwsh.exe" ~/.local/bin/winpwsh
    • sudo ln -s "/mnt/c/Program Files/WezTerm/wezterm.exe" ~/.local/bin/winwezterm

Features

  • openWithQuickLook
  • weztermPreview

Windows

Feature name ⭕ ❌
openWithQuickLook
weztermPreview

It probably works.

WSL

Feature name ⭕ ❌
openWithQuickLook
weztermPreview

It probably works.

Linux(not WSL)

Feature name ⭕ ❌
openWithQuickLook
weztermPreview

It probably works.

macOS

Feature name ⭕ ❌
openWithQuickLook
weztermPreview

It probably works. but I haven't mac, can't tested it.

Install and Setup

There is no default mapping. You can map it to any key you like.

Here is an example(use lazy.nvim):

return {
    "stevearc/oil.nvim",
    dependencies = {
        "mimikun/oil-image-preview.nvim",
    },
    config = function()
        local oip = require("oil-image-preview")
        require("oil").setup({
            keymaps = {
                ["g<leader>"] = oip.openWithQuickLook,
                ["gp"] = oip.weztermPreview,
            },
        })
    end,
}

Inspired

Neovim + oil.nvim + Weztermで頑張って画像を表示する

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published