mirror of
https://github.com/macocianradu/nvim-http.git
synced 2026-03-18 21:00:05 +00:00
25 lines
428 B
Lua
25 lines
428 B
Lua
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
|