• Stars
    star
    145
  • Rank 254,144 (Top 6 %)
  • Language
    Lua
  • Created almost 3 years ago
  • Updated 5 months ago

Reviews

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

Repository Details

Neovim plugin for web developers

web-tools.nvim

Fetures

  • View your html/css files with a live web server locally
  • HTML & CSS tag rename, repeat rename action
  • Test your web API with Hurl/curl

web server live view

webtools.mov

Test web API with Hurl

Hurl

Install

  • require
    • neovim 0.7+
    • browser-sync
    • optional: lspconfig & vscode-langservers-extracted

Install browser sync

npm install -g browser-sync

LSP for html & cssls

npm i -g vscode-langservers-extracted

Instal hurl

install hurl

Plug

Plug 'ray-x/web-tools.nvim'

Setup

require'web-tools'.setup({
  keymaps = {
    rename = nil,  -- by default use same setup of lspconfig
    repeat_rename = '.', -- . to repeat
  },
  hurl = {  -- hurl default
    show_headers = false, -- do not show http headers
    floating = false,   -- use floating windows (need guihua.lua)
    formatters = {  -- format the result by filetype
      json = { 'jq' },
      html = { 'prettier', '--parser', 'html' },
    },
  },
})

Commands

command Description
BrowserSync {args} run browser-sync server with args
BrowserOpen {args} open browser-sync, if browser-sync is not start, start it with args
BrowserPreview {-f --port 3000} preview current file with browser sync
BrowserRestart restart browser sync
Browserstop stop browser sync
TagRename {newname} rename html tag
HurlRun {args} Run Hurl, when in Visual mode, run selected snippets

Note: {args} is optional, if not provided, check browser-sync for all args options --port: specify port to open, if BrowserPreview port is different from BrowserSync port, open without check browser-sync server

More Repositories

1

lsp_signature.nvim

LSP signature hint as you type
Lua
1,987
star
2

go.nvim

G'day Nvimer, Joyful Gopher: Discover the Feature-Rich Go Plugin for Neovim
Lua
1,953
star
3

navigator.lua

Code analysis & navigation plugin for Neovim. Navigate codes like a breeze🎐 Exploring LSP and 🌲Treesitter symbols a piece of 🍰 Take control like a boss 🦍
Lua
1,270
star
4

nvim

Personal neovim setup with 180+ plugins.
Lua
350
star
5

aurora

A vivid dark theme for modern Neovim.
Lua
318
star
6

cmp-treesitter

cmp source for treesitter
Lua
225
star
7

starry.nvim

A pack of modern nvim color schemes: material, moonlight, Dracula (blood), Monokai, Mariana, Emerald, earlysummer, middlenight_blue... Fully support Treesitter, LSP and a variety of plugins.
Lua
214
star
8

sad.nvim

Space Age seD in Neovim. A project-wide find and replace plugin for Neovim.
Lua
187
star
9

guihua.lua

A GUI library for Neovim plugin developers
Lua
160
star
10

forgit.nvim

Interactive fzf+git for Neovim. I remembered the git commands so you wont forget.
Lua
74
star
11

dotfiles

Shell
34
star
12

material_plus.nvim

A pack of modern nvim color schemes: material, moonlight, Dracula (blood), Monokai, Mariana, Emerald, earlysummer, middlenight_blue... Fully support Treesitter, LSP and a variety of plugins.
Lua
23
star
13

Wifi-TI3200

iOS APP for WIFI starter of TI 3200, fix multiple issue on building
Objective-C
21
star
14

telescope-ast-grep.nvim

AST grep extension for telescope.nvim
Lua
20
star
15

viewdoc.nvim

Search and view your (vim plugins) markdown & help files with glow
Lua
19
star
16

rtems_book

rtems internal and development
15
star
17

ButtonAnimationCollage

Animate the iOS button with CABasicAmimation. Provide Ripple, border, invert effects.
Objective-C
12
star
18

cmp-sql

SQL keywords for cmp
Lua
11
star
19

mkdn.nvim

markdown note taking tools with LSP
Lua
10
star
20

Revised_II

RenPy Visual editor
C++
4
star
21

yamlmatter.nvim

Enhancing the display of YAML frontmatter in Markdown files
Lua
4
star
22

AudioAnalysis

Java
2
star
23

Gululu

Gamify Your Fitness
Swift
2
star
24

ray-x

2
star
25

blog

django-blog
CSS
1
star
26

ray-x.github.io

ray-x blog page
HTML
1
star