mirror of
https://github.com/tomru/nvim.git
synced 2026-03-03 22:47:18 +01:00
add basic folding settings
This commit is contained in:
5
init.lua
5
init.lua
@@ -157,6 +157,11 @@ vim.opt.cursorline = true
|
|||||||
-- Minimal number of screen lines to keep above and below the cursor.
|
-- Minimal number of screen lines to keep above and below the cursor.
|
||||||
vim.opt.scrolloff = 10
|
vim.opt.scrolloff = 10
|
||||||
|
|
||||||
|
-- folding
|
||||||
|
vim.opt.foldmethod = 'expr'
|
||||||
|
vim.opt.foldexpr = 'nvim_treesitter#foldexpr()'
|
||||||
|
vim.o.foldlevelstart = 99
|
||||||
|
|
||||||
-- [[ Basic Keymaps ]]
|
-- [[ Basic Keymaps ]]
|
||||||
-- See `:help vim.keymap.set()`
|
-- See `:help vim.keymap.set()`
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user