Skip to content

Latest commit

 

History

History
38 lines (24 loc) · 604 Bytes

File metadata and controls

38 lines (24 loc) · 604 Bytes

dictionary.nvim

Look up the definition of any word using dictionaryapi.dev.

Requirements

  • Neovim 0.10+
  • curl in PATH

Usage

Place cursor on a word and run:

:Dictionary

Or look up a specific word:

:Dictionary hello

From Lua (for keymaps):

require("dictionary").lookup()

The popup displays each meaning in its own section with part of speech, numbered definitions, and examples. Close with q or <Esc>.

Installation

With lazy.nvim:

{ "andrewwillette/dictionary.nvim" }