This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
local Buffer = require 'u.buffer'
|
||||
local Pos = require 'u.pos'
|
||||
local Range = require 'u.range'
|
||||
local txtobj = require 'u.txtobj'
|
||||
@@ -7,10 +6,10 @@ local M = {}
|
||||
|
||||
function M.setup()
|
||||
-- Select whole file:
|
||||
txtobj.define('ag', function() return Buffer.current():all() end)
|
||||
txtobj.define('ag', function() return Range.from_buf_text(0) end)
|
||||
|
||||
-- Select current line:
|
||||
txtobj.define('a.', function() return Buffer.current():line(Pos.from_pos('.').lnum) end)
|
||||
txtobj.define('a.', function() return Range.from_line(0, Pos.from_pos('.').lnum) end)
|
||||
|
||||
-- Select the nearest quote:
|
||||
txtobj.define('aq', function() return Range.find_nearest_quotes() end)
|
||||
|
||||
Reference in New Issue
Block a user