Home

Awesome

<div align="center">

dict-popup.nvim

Neovim Lua

</div>

A simple plugin for the Linux command dict which shows the definitions in a popup. (vim9script version)

Screenshot

Features

Install

Command

sudo apt install dictd
# or
sudo dnf install dictd
# extra dictionaries
sudo apt install dict-jargon dict-vera

Note: Syntax tested with gcide (default), jargon and vera

Plugin

{
    "Nealium/dict-popup.nvim",
    opts = {
        normal_mapping = nil, -- disable
        visual_mapping = "<Leader>h",
        visual_reg = "*",
        stack = false,
    },
}

Notes:

Dict buffer keymaps

Keymaps can be changed through the opts key buffer_mappings:

{
    "Nealium/dict-popup.nvim",
    opts = {
        normal_mapping = "<Leader>h",
        visual_mapping = "<Leader>h",
        visual_reg = "*",
        stack = false,
        buffer_mappings = { -- defaults
            close = { "<Esc>", "q" },
            next_definition = { "}" },
            previous_definition = { "{" },
            jump_back = { "<C-o>" },
            jump_forward = { "<C-i>", "<Tab>" },
            jump_definition = { "<C-]>" },
        },
    },
}

TODO