summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosh Rahm <rahm@google.com>2024-03-12 17:55:15 +0000
committerJosh Rahm <rahm@google.com>2024-03-12 17:55:15 +0000
commitff00585c7c9e0cac8d1c75a8cb60fd82519b6856 (patch)
treeaac8be23bb829061a780bec5dc968f47988d038d
parent8bb88b81a307746ceaf8e3b10137399d980f8903 (diff)
downloadnvim-warp-ff00585c7c9e0cac8d1c75a8cb60fd82519b6856.tar.gz
nvim-warp-ff00585c7c9e0cac8d1c75a8cb60fd82519b6856.tar.bz2
nvim-warp-ff00585c7c9e0cac8d1c75a8cb60fd82519b6856.zip
strategy -> col_selectors
-rw-r--r--lua/warp.lua2
-rw-r--r--lua/warp/col_selectors/grid.lua (renamed from lua/warp/strategy/grid.lua)0
-rw-r--r--lua/warp/col_selectors/null.lua (renamed from lua/warp/strategy/null.lua)0
-rw-r--r--lua/warp/col_selectors/words.lua (renamed from lua/warp/strategy/words.lua)0
-rw-r--r--plugin/warp.vim8
5 files changed, 5 insertions, 5 deletions
diff --git a/lua/warp.lua b/lua/warp.lua
index b5cb51c..1b0141d 100644
--- a/lua/warp.lua
+++ b/lua/warp.lua
@@ -84,7 +84,7 @@ end
M.run = function(col_selector, win_selector)
if not col_selector then
- col_selector = require('warp.strategy.grid').strategy
+ col_selector = require('warp.col_selectors.grid').strategy
end
if not win_selector then
diff --git a/lua/warp/strategy/grid.lua b/lua/warp/col_selectors/grid.lua
index bc37b56..bc37b56 100644
--- a/lua/warp/strategy/grid.lua
+++ b/lua/warp/col_selectors/grid.lua
diff --git a/lua/warp/strategy/null.lua b/lua/warp/col_selectors/null.lua
index eb00921..eb00921 100644
--- a/lua/warp/strategy/null.lua
+++ b/lua/warp/col_selectors/null.lua
diff --git a/lua/warp/strategy/words.lua b/lua/warp/col_selectors/words.lua
index 8135a45..8135a45 100644
--- a/lua/warp/strategy/words.lua
+++ b/lua/warp/col_selectors/words.lua
diff --git a/plugin/warp.vim b/plugin/warp.vim
index c414501..95391a1 100644
--- a/plugin/warp.vim
+++ b/plugin/warp.vim
@@ -1,16 +1,16 @@
" Uses a strategy that allows the user to select an arbitrary line and column by
" using 2x2 key strokes. Is more complex, but most powerful.
-command! WarpFull lua require('warp').run(require('warp.strategy.grid').grid_strategy, require('warp.win_selectors.prompt'))
+command! WarpFull lua require('warp').run(require('warp.col_selectors.grid').grid_strategy, require('warp.win_selectors.prompt'))
" Uses a strategy that allows the user to select an arbitrary line and column by
" using 2x2 key strokes. Is more complex, but most powerful.
-command! WarpGrid lua require('warp').run(require('warp.strategy.grid').grid_strategy)
+command! WarpGrid lua require('warp').run(require('warp.col_selectors.grid').grid_strategy)
" Has the user select the column based on nows.
-command! WarpWords lua require('warp').run(require('warp.strategy.words').words_strategy)
+command! WarpWords lua require('warp').run(require('warp.col_selectors.words').words_strategy)
" Warps to the line and leaves the cursor on the current line.
-command! WarpLine lua require('warp').run(require('warp.strategy.null').null_strategy)
+command! WarpLine lua require('warp').run(require('warp.col_selectors.null').null_strategy)
noremap <Plug>(warp-grid) <cmd>WarpGrid<cr>
noremap <Plug>(warp-words) <cmd>WarpWords<cr>