Replace setup() with vim.g.http_codes configuration. Add plugin/ file with load guard for proper lazy loading via lazy.nvim or other managers.
8 lines
171 B
Lua
8 lines
171 B
Lua
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, {})
|