A glow preview directly in your neovim buffer.
This config will be used to set where the
glow binary is installed if already available in
$PATH. Same path will be
used if you need to download it
g:glow_binary_path for vimscript config or
vim.g.glow_binary_path for lua config. Example:
let g:glow_binary_path = $HOME . "/bin"
vim.g.glow_binary_path = vim.env.HOME .. "/bin"
If no config is available, the default path will be
$HOME/.local/bin . Make sure to add it into
$PATH if that's the
This will install the
glow dependency into
$HOME/.local/bin if not defined.
qwill automatically close the window
:Glowcommand will work as toogle feature, so calling it will open or close the current preview
You can also create a mapping getting a preview of the current file
noremap <leader>p :Glow<CR>
For users who want to make glow.nvim buffer fullscreen, there's a native vim keybinding
Ctrl-w + |set window's width max
Ctrl-w + _set window's height max
Or you can have a fullscreen option by creating a mapping for setting both window's height and width max at once
noremap <C-w>z <C-w>\|<C-w>\_