diff options
-rw-r--r-- | lua/warp.lua | 2 | ||||
-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.vim | 8 |
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> |