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:
parent
77aea3a73d
commit
4dce284c10
2 changed files with 59 additions and 33 deletions
8
plugin/http-codes.lua
Normal file
8
plugin/http-codes.lua
Normal 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, {})
|
||||
Loading…
Add table
Add a link
Reference in a new issue