Created
November 20, 2024 21:12
-
-
Save shotgundebugging/8164b2a7ad319b9d36717ad6a2bbf403 to your computer and use it in GitHub Desktop.
Rails neovim config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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