Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/barrett-ruth/http-codes.nvim
https://github.com/barrett-ruth/http-codes.nvim
Last synced: 11 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/barrett-ruth/http-codes.nvim
- Owner: barrett-ruth
- Created: 2024-06-17T20:24:53.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-06-18T02:11:36.000Z (7 months ago)
- Last Synced: 2024-11-06T21:52:22.984Z (2 months ago)
- Language: Lua
- Size: 9.77 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# http-codes.nvim
Quickly investigate HTTP status codes with the help of [mozilla](https://developer.mozilla.org/en-US/docs/Web/HTTP), including [telescope](https://github.com/barrett-ruth/telescope-http.nvim/) and [fzf-lua](https://github.com/ibhagwan/fzf-lua) integrations.
## Installation
Install via your favorite package manager, like [lazy](https://github.com/folke/lazy.nvim):
```lua
require('lazy').setup({
{
'barrett-ruth/http-codes.nvim'
config = true,
-- or 'nvim-telescope/telescope.nvim'
dependencies = 'ibhagwan/fzf-lua'
keys = { { 'H', 'HTTPCodes' }}
}
})
```## [Configuration](./doc/http-codes.txt)
`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](./doc/http-codes.txt) for more information.
## Usage
Use the exposed command in vimscript:
```lua
:HTTPCodes
```or in lua:
```lua
require('http-codes').http_codes()
```## Migration
If migrating from [telescope-http.nvim](https://github.com/barrett-ruth/telescope-http.nvim), follow the above instructions—no telescope-specific config is necessary.