nvim folding

This commit is contained in:
thek4n 2024-01-31 15:28:54 +03:00
parent 6777c7a02d
commit 7a62a3686e
2 changed files with 7 additions and 2 deletions

View File

@ -0,0 +1,3 @@
local opt = vim.opt_local
opt.foldmethod = "indent"

View File

@ -15,7 +15,7 @@ opt.clipboard:append { 'unnamedplus' }
opt.shortmess:append{a = true, s = true, I = true, c = true, S = true } -- disable startup message
opt.cmdheight = 1
vim.wo.signcolumn = "yes:2"
vim.wo.signcolumn = "yes:1"
opt.shell = 'zsh'
@ -137,4 +137,6 @@ vim.api.nvim_create_autocmd("BufWinEnter", {
callback = function()
vim.cmd('silent! loadview 1')
end,
})
})
vim.opt.foldcolumn = "1"