glow.mp4
Breaking changes are now moved to a fixed topic in Discussions. Click here to see them
- Neovim 0.7+
with vim-plug
Plug 'ellisonleao/glow.nvim'
with packer.nvim
use {"ellisonleao/glow.nvim"}
The script comes with the following defaults:
{
glow_path = "", -- will be filled automatically with your glow bin in $PATH, if any
install_path = "~/.local/bin", -- default path for installing glow binary
border = "shadow", -- floating window border config
style = "dark|light", -- filled automatically with your current editor background, you can override using glow json style
pager = false,
width = 80,
}
To override the custom configuration, call:
require('glow').setup({
-- your override config
})
Example:
require('glow').setup({
style = "dark",
width = 120,
})
:Glow [path-to-md-file]
:Glow
:Glow!
You can also close the floating window using q
or <Esc>
keys