Get simple rg example to work
This commit is contained in:
13
lua/telescope/extensions/vimgrep.lua
Normal file
13
lua/telescope/extensions/vimgrep.lua
Normal file
@@ -0,0 +1,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
|
||||
Reference in New Issue
Block a user