mirror of
https://github.com/macocianradu/nvim-http.git
synced 2026-03-18 21:00:05 +00:00
13 lines
193 B
Lua
13 lines
193 B
Lua
local M = {}
|
|
|
|
function M.get_current_line()
|
|
return vim.api.nvim_get_current_line()
|
|
end
|
|
|
|
function M.parse_line(line)
|
|
local a, b = line:match"^(%S+)%s+(.+)"
|
|
return a, b
|
|
end
|
|
|
|
return M
|