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.shortmess:append{a = true, s = true, I = true, c = true, S = true } -- disable startup message
opt.cmdheight = 1 opt.cmdheight = 1
vim.wo.signcolumn = "yes:2" vim.wo.signcolumn = "yes:1"
opt.shell = 'zsh' opt.shell = 'zsh'
@ -138,3 +138,5 @@ vim.api.nvim_create_autocmd("BufWinEnter", {
vim.cmd('silent! loadview 1') vim.cmd('silent! loadview 1')
end, end,
}) })
vim.opt.foldcolumn = "1"