No description
Find a file
Barrett Ruth 77aea3a73d
Merge pull request #2 from cxwx/patch-1
Update readme.md
2025-03-22 10:19:40 -04:00
doc feat: default to available picker 2024-06-17 18:30:18 -05:00
lua feat: default to available picker 2024-06-17 18:30:18 -05:00
.stylua.toml initial commit 2022-11-16 22:24:05 -05:00
readme.md Update readme.md 2025-03-22 16:28:38 +08:00

http-codes.nvim

Quickly investigate HTTP status codes with the help of mozilla, including telescope and fzf-lua integrations.

Installation

Install via your favorite package manager, like lazy:

require('lazy').setup({
    {
        'barrett-ruth/http-codes.nvim',
        config = true,
        -- or 'nvim-telescope/telescope.nvim'
        dependencies = 'ibhagwan/fzf-lua'
        keys = { { '<leader>H', '<cmd>HTTPCodes<cr>' }}
    }
})

Configuration

http-codes.nvim uses telescope or fzf-lua (whichever you've installed), which can be manually overidden.

http-codes.nvim opens the Mozilla documentation URLs based on your operating system. This can be overidden.

OS open_url
Windows start %s
OSX open %s
UNIX xdg-open %s

See the docs for more information.

Usage

Use the exposed command in vimscript:

:HTTPCodes

or in lua:

require('http-codes').http_codes()

Migration

If migrating from telescope-http.nvim, follow the above instructions—no telescope-specific config is necessary.