mirror of
https://github.com/macocianradu/nvim-http.git
synced 2026-03-18 21:00:05 +00:00
MVP
This commit is contained in:
24
lua/nvim_http/config.lua
Normal file
24
lua/nvim_http/config.lua
Normal 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
|
||||
Reference in New Issue
Block a user