This commit is contained in:
radumaco
2026-03-06 22:14:04 +01:00
parent 29272e3e1c
commit 70016196c1
8 changed files with 1148 additions and 0 deletions

24
lua/nvim_http/config.lua Normal file
View File

@@ -0,0 +1,24 @@
local M = {}
M.defaults = {
http = {
enabled = true,
execute_keymap = "<leader>hr",
clear_keymap = "<leader>hc",
timeout_ms = 10000,
highlight_group = "Comment",
command_patterns = {
"^curl%s+",
"^http%s+",
"^wget%s+",
"^%u+%s+https?://",
"^https?://",
},
},
}
function M.merge(opts)
return vim.tbl_deep_extend("force", {}, M.defaults, opts or {})
end
return M