Wordle for neovim!
return {
"neysanfoo/wordy.nvim",
opts = {},
}use({
"neysanfoo/wordy.nvim",
config = function()
require("wordy").setup()
end,
})Vundle
Add to your .vimrc or init.vim:
" In your plugin list
Plugin 'neysanfoo/wordy.nvim'
" After :PluginInstall
lua << EOF
require("wordy").setup()
EOFAgain, run:
:PluginInstall
Start a new game:
:Wordy
-
Normal mode
i– switch to insert modeq/<Esc>– quit the game<Enter>– submit guess (also works in insert)
-
Insert mode
- Type letters to fill the row
<Enter>– submit guess<Esc>– return to normal mode- Arrow keys /
<BS>/<Del>work as expected
The game auto-saves progress and restores it on the next launch.
If you want to force your own shades you can pass a colors table to
setup(). All keys are optional:
require("wordy").setup({
colors = {
border = { fg = "#00ffff" },
typed = { fg = "#ffffff" },
correct = { bg = "#228b22", fg = "#ffffff" },
present = { bg = "#b8860b", fg = "#ffffff" },
absent = { fg = "#696969" },
},
})