enter now folds, spacebar is now the leader key

This commit is contained in:
JesseBot 2023-03-19 16:18:56 +01:00
parent 20d5420bcc
commit 7a01ae8799
No known key found for this signature in database
GPG key ID: C01D207CE04D55D9
3 changed files with 7 additions and 2 deletions

View file

@ -23,6 +23,9 @@ vim.opt.termguicolors = true
-- make searching case insensitive
vim.opt.ignorecase = true
-- spacebar is our leader key
vim.g.mapleader = '<space>'
-- load plugins
require('user.lazy')

View file

@ -13,4 +13,4 @@ vim.opt.foldexpr = "nvim_treesitter#foldexpr()"
vim.opt.foldlevelstart = 99
-- let spacebar allow me to fold the code
vim.keymap.set('n', '<space>', 'za')
vim.keymap.set('n', '<enter>', 'za')

View file

@ -297,9 +297,11 @@ These are the sensible defaults for [`onboardme`](https://github.com/jessebot/on
- turning off mouse scrolling (might re-enable this 🤔)
- enabling line numbers
- adding a cursorline
- <kbd>enter</kbd> folds the current code block
- <kbd>space</kbd> is our leader key (a custom modifier key for neovim)
- setting column 80 to be a different color for tidy code
- searches are case insensitive
- enabling gui colors so you aren't limited to like 8 colors
- enabling gui colors so you aren't limited to like 16 colors
- uses the [spacechalk.nvim] colorscheme
- sources all the files in [`~/.config/nvim/lua`](.config/nvim/lua),
including all our [plugin configs](.config/nvim/lua/user/lazy.lua).