Skip to content

barrettruth/http-codes.nvim

Repository files navigation

http-codes.nvim

Quickly investigate HTTP status codes with Mozilla, with telescope, fzf-lua, and snacks.nvim integrations.

Note

Due to GitHub's historic unreliability, active development is hosted on Forgejo. GitHub is maintained as a read-only mirror. See :help http-codes-forgejo for canonical project links.

Installation

With vim.pack (Neovim 0.12+):

vim.pack.add({
  'https://git.barrettruth.com/barrettruth/http-codes.nvim',
})

Or via luarocks:

luarocks install http-codes.nvim

Dependencies

One of:

Quick Start

Install one picker backend first, then http-codes.nvim so the command has a UI to open.

vim.pack.add({
  'https://github.com/ibhagwan/fzf-lua',
  'https://git.barrettruth.com/barrettruth/http-codes.nvim',
})

Set the backend before http-codes.nvim loads if you want deterministic picker selection.

vim.g.http_codes = {
  use = 'fzf-lua',
}

Open the picker when you need to inspect a response code; type 404, 429, or 500, then press <CR> to open the selected MDN page.

:HTTPCodes

Bind the <Plug> mapping if you look up status codes often.

vim.keymap.set('n', '<leader>hc', '<Plug>(http-codes-pick)')

Documentation

:help http-codes

About

[mirror of git.barrettruth.com/barrettruth/http-codes.nvim] HTTP status code viewer for neovim

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Packages

 
 
 

Contributors