mirror of
https://github.com/LazyVim/starter.git
synced 2026-07-22 04:21:03 +00:00
good enuff for now
This commit is contained in:
parent
3f96bb135f
commit
dc51ca910d
1 changed files with 5 additions and 0 deletions
|
|
@ -6,4 +6,9 @@
|
|||
vim.keymap.del({ "n", "i", "v" }, "<A-j>")
|
||||
vim.keymap.del({ "n", "i", "v" }, "<A-k>")
|
||||
|
||||
local toggle_rspec = [[:lcd `git rev-parse --show-toplevel` | if expand("%:r")[-5:-1] == "_spec" |
|
||||
exe "e ".expand("%:h:s?spec?app?")."/".expand("%:t:s?_spec.rb?.rb?") | else |
|
||||
exe "e ".expand("%:h:s?app?spec?")."/".expand("%:t:s?.rb?_spec.rb?") | endif
|
||||
]]
|
||||
vim.keymap.set('n', '<leader>tf', toggle_rspec, { silent = true, desc = "Toggle test (f)ile" })
|
||||
vim.keymap.set('v', 'y', '"+y') -- v-mode: yank to clipboard;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue