lazy.nvim
{
"Buer-Nahida/antonym.nvim",
opts = {
-- ...
},
}
or use Lazy-load feature
{
"Buer-Nahida/antonym.nvim",
lazy = true,
cmd = "Antonym",
opts = {
-- ...
},
keys = {
-- ...
},
}
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" },
}
}
:Antonym
or, use lua
:lua require("antonym").change()