Neophyte
Neophyte is a Neovim GUI rendered with WebGPU and written in Rust. It offers several niceties over the default terminal-based UI:
- Text shaping and rasterization by Swash, providing high-quality font rendering features such as ligatures, fallback fonts, and emoji
- Smooth scrolling
- Cursor animations
- Pixel-level window positioning
Installation
Either grab a binary from the releases or install with the Rust toolchain:
Configuration
Scripting
Neophyte is scriptable with Lua. The API is LuaLS type-annotated for discoverability.
-- lazy.nvim example:
-- API usage example:
local neophyte = require
neophyte.
-- Alternatively, the guifont option is supported:
vim.. = "Cascadia Code PL:w10, Symbols Nerd Font, Noto Color Emoji"
-- There are also freestanding functions to set these options as desired.
-- Below is a keymap for increasing and decreasing the font size:
-- Increase font size
vim..
-- Decrease font size
vim..
-- Neophyte can also record frames to a PNG sequence.
-- You can convert to a video with ffmpeg:
--
-- ffmpeg -framerate 60 -pattern_type glob -i '/my/frames/location/*.png'
-- -pix_fmt yuv422p -c:v libx264 -vf
-- "colorspace=all=bt709:iprimaries=bt709:itrc=srgb:ispace=bt709:range=tv:irange=pc"
-- -color_range 1 -colorspace 1 -color_primaries 1 -crf 23 -y /my/output/video.mp4
-- Start rendering
neophyte.
-- Stop rendering
neophyte.
Noice
I recommend using Neophyte with Noice for best results, unless you choose to disable cursor animations. This is because Noice externalizes several UI features such that Neovim cedes responsibility for rendering them, namely the cmdline and messages. Without this, the cursor tends to jump around in a way that is jarring when combined with animations. Eventually we may support externalizing these UI elements without a plugin (this is already partially implemented), but in the meantime, Noice is the best option. If you want to try Noice without opting in to popup notifications or the popup cmdline, you can try these settings:
-- lazy.nvim