refactor: use vim.g config and lazy loading

Replace setup() with vim.g.http_codes configuration. Add plugin/ file
with load guard for proper lazy loading via lazy.nvim or other managers.
This commit is contained in:
Barrett Ruth 2026-02-03 20:12:54 -05:00
parent 77aea3a73d
commit 4dce284c10
2 changed files with 59 additions and 33 deletions

8
plugin/http-codes.lua Normal file
View file

@ -0,0 +1,8 @@
if vim.g.loaded_http_codes then
return
end
vim.g.loaded_http_codes = 1
vim.api.nvim_create_user_command('HTTPCodes', function()
require('http-codes').pick()
end, {})