summaryrefslogtreecommitdiff
path: root/lua/telescope/extensions/vimgrep.lua
blob: 4a28a8449325edb6c2e5c633085c96c99ea6cafa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
local vimgrep = {}

vimgrep.parse_line = function(line)
  local sections = vim.split(line, ":")

  return {
    filename = sections[1],
    row = tonumber(sections[2]),
    col = tonumber(sections[3]),
  }
end

return vimgrep