• Stars
    star
    1,249
  • Rank 37,617 (Top 0.8 %)
  • Language
    Lua
  • License
    MIT License
  • Created about 4 years ago
  • Updated 4 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A markdown preview directly in your neovim.

Preview markdown code directly in your neovim terminal
Powered by charm's glow

glow.mp4

Breaking changes are now moved to a fixed topic in Discussions. Click here to see them

Prerequisites

  • Neovim 0.8+

Installing

LuaRocks

with vim-plug

Plug 'ellisonleao/glow.nvim'
lua << EOF
require('glow').setup()
EOF

with packer.nvim

use {"ellisonleao/glow.nvim", config = function() require("glow").setup() end}

with lazy.nvim

{"ellisonleao/glow.nvim", config = true, cmd = "Glow"}

Setup

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,
  height = 100,
  width_ratio = 0.7, -- maximum width of the Glow window compared to the nvim window size (overrides `width`)
  height_ratio = 0.7,
}

To override the custom configuration, call:

require('glow').setup({
  -- your override config
})

Example:

require('glow').setup({
  style = "dark",
  width = 120,
})

Usage

Preview file

:Glow [path-to-md-file]

Preview current buffer

:Glow

Close window

:Glow!

You can also close the floating window using q or <Esc> keys

More Repositories

1

magictools

๐ŸŽฎ ๐Ÿ“ A list of Game Development resources to make magic happen.
13,318
star
2

sharer.js

๐Ÿ”› ๐Ÿ”– Create your own social share buttons. No jquery.
JavaScript
2,007
star
3

gruvbox.nvim

Lua port of the most famous vim colorscheme
Lua
1,819
star
4

clumsy-bird

๐Ÿฆ ๐ŸŽฎ A MelonJS port of the famous Flappy Bird Game
JavaScript
1,510
star
5

pyshorteners

๐Ÿ”Œ Generating short urls with python has never been easier
Python
382
star
6

nvim-plugin-template

A neovim plugin template for github repos
Lua
265
star
7

carbon-now.nvim

Create beautiful code snippets directly from your neovim terminal
Lua
166
star
8

neovimfiles

My Neovim configuration written in Lua
Lua
75
star
9

dotfiles

๐Ÿ’พ personal configuration files
Shell
44
star
10

slack-howdoi

โ˜๏ธ Slack integration with the howdoi library
HTML
42
star
11

dotenv.nvim

A minimalist .env support for Neovim
Lua
35
star
12

vl

CLI tool that helps verify current status of URIs in text files
Go
26
star
13

pybrapp

Python brasil kivy app concept - WIP
Python
24
star
14

weather.nvim

A simple weather plugin in your Neovim
Lua
23
star
15

Flask-Gist

:octocat: A simple flask extension to render Github Gists on the template
Python
14
star
16

go.nvim

Experimental Go development plugin for Neovim
Lua
14
star
17

pelican-semantic-ui

Semantic-UI Pelican Theme
HTML
12
star
18

savemydate

My wedding website
CSS
7
star
19

flask-mistune

Flask interface for mistune markdown parser
Python
7
star
20

from-vimscript-to-lua

Vim Script
6
star
21

pyzeef

๐Ÿ”Œ Python lib to consume the ZEEF's API (Unmaintained)
Python
6
star
22

howdoi

โœจ instant coding answers via the command line
Go
5
star
23

criando-plugins-lua-neovim

Cรณdigos fonte para a sรฉrie "Criando plugins Lua para Neovim"
Lua
3
star
24

fabfile-django-bootstrap

A simple fabfile.py template for django projects
3
star
25

fotolog-dl

:trollface: Easily save your Fotolog.com teenage photos.
Go
3
star
26

ellisonleao

$HOME
2
star
27

hackchallenges

Go
2
star
28

myslash

Simple Hello World Slash Command
Python
2
star
29

rest-api-go

Cรณdigo usado na talk "Sua primeira API REST com Go"
Go
2
star
30

Flask-Gamification

Gamification extension for Flask applications
2
star
31

xnacannon

Xna Cannon Game
C#
1
star
32

megplay

Webapp criado para facilitar o treinamento dos avaliadores do SEBRAE
CSS
1
star
33

ef-url-shortener

A small url shortener microservice built with Hug
Python
1
star
34

Swings

My first console game (Windows Only)
C++
1
star
35

fishboy-html5

HTML5 version of my fishboy game using MelonJS
JavaScript
1
star