Skip to content

Commit

Permalink
Add keybinding to open a Rails console in a tmux split
Browse files Browse the repository at this point in the history
Quicker access to a Rails console. Nice.
  • Loading branch information
jordelver committed Sep 8, 2023
1 parent c244539 commit 4e8cec9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions config/nvim/lua/keymaps.lua
Expand Up @@ -151,6 +151,9 @@ vim.keymap.set('', '<leader>nt', '<cmd>NvimTreeToggle<cr>', { noremap = true })
-- Easier git blaming
vim.keymap.set('', '<leader>gb', '<cmd>Git blame<cr>', { noremap = true })

-- Open a Rails console in a tmux split
vim.keymap.set('n', '<leader>rc', ":silent !tmux split-window 'bin/rails c'<cr>", { silent = true, desc = 'Open a Rails console' })

-- Toggle spellcheck
vim.keymap.set('n', '<leader>s', ':set spell!<cr>', { desc = 'Toggle spellcheck' })

Expand Down

0 comments on commit 4e8cec9

Please sign in to comment.