Skip to content

Browse synonyms & definitions from multiple providers as a telescope extension.

Notifications You must be signed in to change notification settings

rafi/telescope-thesaurus.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

Neovim Telescope Thesaurus

Browse synonyms & definitions from multiple providers as a telescope.nvim extension.

Screenshot

Thesaurus screenshot

Install

Requirements:

Use your favorite package-manager:

With lazy.nvim
{
  'nvim-telescope/telescope.nvim',
  dependencies = { 'rafi/telescope-thesaurus.nvim' },
},
With packer.nvim
use {
  'rafi/telescope-thesaurus.nvim',
  requires = { 'nvim-telescope/telescope.nvim' }
}

Setup

Supported providers:

Register at dictionaryapi.com and get an API key. Set it as vim.g.dictionary_api_key or DICTIONARY_API_KEY environment variable.

To set a different provider, set options from Telescope config. If you're using lazy.nvim, here's an example:

{
  'nvim-telescope/telescope.nvim',
  opts = {
    extensions = {
      thesaurus = {
        provider = 'datamuse',
      },
    },
  },
}

Usage

  • In normal mode, when cursor over a word: :Telescope thesaurus lookup
  • Query word manually: :Telescope thesaurus query word=hello

Bind the lookup command to a key-mapping, e.g.:

vim.keymap.set('n', '<localleader>k', '<cmd>Telescope thesaurus lookup<CR>')

Enjoy!

About

Browse synonyms & definitions from multiple providers as a telescope extension.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages