Skip to content

IllicitFrog/html-preview.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 

Repository files navigation

HTML Preview

Requires Neovim 0.9.0 or greater

Still in early development expect ISSUES.

A simple HTML preview plugin for neovim.

Was created for a simple web interface I was making and got tired of refreshing, orginally wrote in C++ but required to many build dependencies and issues cross platform.

It by no means is polished but I intend to maintain it.

Features:

  • Built using Neovim native Luv api no external dependencies
  • Supports live HTML, CSS, and JS
  • Multiple live projects at once
  • Works with neovim 0.9.0 or greater
  • I really dislike making README's

Installation

Lazy:

"IllicitFrog/html_preview.nvim",
ft = "html",
config = function()
    require("html_preview").setup()
end,

Packer:

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

Usage

No configuration required simply run

:HtmlPreview

Can be exited by either closing the preview window or by

:HtmlPreviewStop

For different aspect ratio's use

:HtmlPreview mobile or :HtmlPreview letter

Credit

The websockets were heavily "inspired" by LuaWebsockets

https://github.com/lipp/lua-websockets

About

Html live preview for neovim v0.9 or greater.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages