/telescope-http.nvim

Browse HTTP codes with telescope

Primary LanguageLua

telescope-http.nvim

Quickly investigate HTTP status codes with the help of telescope.nvim and mozilla.

Installation

Install via your favorite package manager, like paq:

require 'paq' {
    'savq/paq-nvim',
    'barrett-ruth/telescope-http.nvim'
}

Then load the extension:

require('telescope').load_extension 'http'

Dependencies

Configuration

require('telescope').setup {
    extensions = {
        http = {
            -- How the mozilla url is opened. By default will be configured based on OS:
            open_url = 'xdg-open %s' -- UNIX
            -- open_url = 'open %s' -- OSX
            -- open_url = 'start %s' -- Windows
        }
    }
}

Usage

Creating a mapping for the following command in vim:

:Telescope http list

or lua:

require('telescope').extensions.http.list()