Skip to content

Repository files navigation

http-codes.nvim

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

Installation

With vim.pack (Neovim 0.12+):

vim.pack.add({
  'https://forge.barrettruth.com/barrettruth/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://forge.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

Releases

Packages

Contributors

Languages