get rid of setup function #1

Closed
opened 2024-10-28 10:44:21 +00:00 by teto · 1 comment

would it be possible to replace the setup function with vim.g.http_codes variable for the reasons mentioned at https://mrcjkb.dev/posts/2023-08-22-setup.html ?
I installed the software and was expecting it to work out of the box since it's very simple but nothing was available so I looked at https://github.com/barrett-ruth/http-codes.nvim/blob/main/lua/http-codes.lua and found out I could run require('http-codes.fzf-lua').pick() with success. The setup could be lazyloaded run without any user intervention. Having to call setup myself makes the plugin extra-hard to use.

would it be possible to replace the setup function with `vim.g.http_codes` variable for the reasons mentioned at https://mrcjkb.dev/posts/2023-08-22-setup.html ? I installed the software and was expecting it to work out of the box since it's very simple but nothing was available so I looked at https://github.com/barrett-ruth/http-codes.nvim/blob/main/lua/http-codes.lua and found out I could run `require('http-codes.fzf-lua').pick()` with success. The setup could be lazyloaded run without any user intervention. Having to call `setup` myself makes the plugin extra-hard to use.
barrettruth commented 2024-10-28 15:08:33 +00:00

I agree. Can you write a PR for it? Thanks!

I agree. Can you write a PR for it? Thanks!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
barrettruth/http-codes.nvim#1
No description provided.