Skip to content

Latest commit

 

History

History
74 lines (59 loc) · 972 Bytes

README.md

File metadata and controls

74 lines (59 loc) · 972 Bytes

antonym.nvim

Super-simple neovim plugin for cycling through antonyms/words related to word under cursor

Install

lazy.nvim

{
  "SR-MyStar/antonym.nvim",
  opts = {
    -- ...
  },
}

or use Lazy-load feature

{
  "SR-Mystar/antonym.nvim",
  lazy = true,
  cmd = "Antonym",
  opts = {
    -- ...
  },
  keys = {
    -- ...
  },
}

Configuration

If you only want cycling through antonym

opts = {
    only_antonym = true,
    words = {
        ["example1"] = "antonym1",
        ["example2"] = "antonym2",
    }
}

else, you can do it

opts = {
    words = {
        { "example1", "other-word1","other-word2" },
        { "example2", "other-word1","other-word2" },
    }
}

Using

:Antonym

or, use lua

:lua require("antonym").change()