HTTP status code viewer for neovim
- Lua 77.2%
- Shell 11.3%
- Nix 8.6%
- Just 2.9%
## Checklist - [x] I have read [CONTRIBUTING.md](https://git.barrettruth.com/barrettruth/http-codes.nvim/src/branch/main/CONTRIBUTING.md). - [ ] No AI was used to generate, edit, or review any part of this contribution. ## Problem The README still points users at legacy `.nvim` help topics, and the vimdoc filename does not match the clean help topic convention. ## Solution - Rename `doc/http-codes.nvim.txt` to `doc/http-codes.txt` while preserving legacy help tags. - Add concise Quick Start sections to the README and vimdoc for picker install, backend pinning, `:HTTPCodes`, and `<Plug>(http-codes-pick)`. - Prefer `:help http-codes` and `:help http-codes-forgejo` in README references. ## Verification - `git diff --check` - `vimdoc-language-server format doc/` - `vimdoc-language-server format --check doc/` - `vimdoc-language-server check doc/` - `nix develop --command just ci` Reviewed-on: https://git.barrettruth.com/barrettruth/http-codes.nvim/pulls/39 |
||
|---|---|---|
| .forgejo | ||
| .github/workflows | ||
| doc | ||
| lua | ||
| plugin | ||
| .editorconfig | ||
| .gitignore | ||
| .luarc.json | ||
| biome.json | ||
| CONTRIBUTING.md | ||
| flake.lock | ||
| flake.nix | ||
| http-codes.nvim-scm-1.rockspec | ||
| justfile | ||
| LICENSE | ||
| README.md | ||
| selene.toml | ||
| stylua.toml | ||
| vim.toml | ||
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-forgejofor 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