nvim-type-anim
enhances the Neovim experience by providing a visually engaging way to display file contents, with user-friendly controls for managing the animation. It is a unique tool for presentations, educational purposes, or to add an interesting visual effect to your Neovim environment.
Using packer.nvim:
use {'derrekito/nvim-type-anim'}
Using LazyVim
return {
'Derrekito/nvim-type-anim',
lazy = true,
config = function()
require("type-anim").setup({
AnimToggleKey="<space>",
AnimKillKey="<C-C>"
})
end
}
:TypeAnim [file]
Starts the typing animation with the content of [file]. If [file] is omitted and the command is used in a Netrw buffer, it animates the file currently selected.:TypeAnimToggle
Toggles the animation, pausing or resuming it.:TypeAnimKill
Stops the animation and cleans up, restoring any original key mappings.
AnimToggleKey
The key used to toggle the animation. Default is .AnimKillKey
The key used to stop the animation. Default is .
You can customize the plugin's behavior by passing a configuration table to the setup function:
require("type-anim").setup({
AnimToggleKey = "<space>", -- Key to toggle the animation
AnimKillKey = "<C-c>" -- Key to stop the animation
})
Contributions are welcome! Please feel free to submit a pull request or create an issue if you have ideas or find bugs.
This plugin is released under the MIT License.