My collection of sensible Neovim default settings.
All options are organized into sections with comments for clarity.
- Mouse support enabled (
mouse = 'a') - Swap files disabled
- Scroll margins: 5 lines vertical, 15 lines horizontal
- Split windows below and to the right
- Completion menu configuration (always show, no auto-select)
- Line wrapping at word boundaries
- Spaces for indentation (2 spaces)
- Visible whitespace characters (tabs, trailing spaces, line endings)
- Cursor line highlighting
- Line numbers displayed
- Status line always visible
- Smart case search (case-insensitive unless uppercase letters are used)
- System clipboard integration (
clipboard = 'unnamedplus') - Minimal diagnostics UI (gutter signs + underlines, no inline text)
- Automatic trailing whitespace trimming on save
/- Enable search highlighting when searching<leader><cr>- Clear search highlighting<S-Tab>(Insert mode) - Tab backwardsj/k- Move by display lines (works with wrapped text)va- Select all text</>(Visual mode) - Indent and keep selectionD- Delete to end of line (consistent withC)Y- Yank to end of line (consistent withDandC)
:BufOnly/:bo- Close all buffers except the current one
You can customize the plugin behavior by setting global variables in your init.lua:
vim.g.rational_diagnostic_signs(boolean, default:true) - Enable custom LSP diagnostic signs (requires nerd font icons)
Using vim-plug:
Plug 'lcmen/rational.nvim'