mirror of
https://github.com/jessebot/dot_files.git
synced 2025-10-01 01:48:43 +00:00
14 lines
505 B
Lua
14 lines
505 B
Lua
|
|
-- FOLDING ZONE:
|
|
-- collapse an entire block or function
|
|
-- ---------------------------------------------------------------------------
|
|
-- Enable folding on base indent
|
|
vim.opt.foldmethod = 'indent'
|
|
vim.opt.foldlevel = 99
|
|
-- also allow me to see the doc strings
|
|
vim.g.SimpylFold_docstring_preview=1
|
|
-- enable folding for markdown?
|
|
vim.g.markdown_folding = 1
|
|
-- let spacebar allow me to fold the code
|
|
-- nnoremap <space> za
|
|
vim.keymap.set('n', '<space>', 'za')
|