Skip to content

Instantly share code, notes, and snippets.

@shotgundebugging
Created November 20, 2024 21:12
Show Gist options
  • Select an option

  • Save shotgundebugging/8164b2a7ad319b9d36717ad6a2bbf403 to your computer and use it in GitHub Desktop.

Select an option

Save shotgundebugging/8164b2a7ad319b9d36717ad6a2bbf403 to your computer and use it in GitHub Desktop.
Rails neovim config
vim.cmd("set expandtab")
vim.cmd("set tabstop=2")
vim.cmd("set softtabstop=2")
vim.cmd("set shiftwidth=2")
vim.g.mapleader = " "
vim.opt.swapfile = false
-- Navigate vim panes better
vim.keymap.set('n', '<c-k>', ':wincmd k<CR>')
vim.keymap.set('n', '<c-j>', ':wincmd j<CR>')
vim.keymap.set('n', '<c-h>', ':wincmd h<CR>')
vim.keymap.set('n', '<c-l>', ':wincmd l<CR>')
vim.keymap.set('n', '<leader>h', ':nohlsearch<CR>')
vim.wo.number = true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment