nix/prog/nvim: add default fold options
This commit is contained in:
parent
c83e2458db
commit
fad16649ba
1 changed files with 7 additions and 0 deletions
|
@ -93,6 +93,12 @@ vim.opt.smartcase = true
|
|||
-- Spell
|
||||
vim.opt.spelllang = 'en,ru'
|
||||
|
||||
-- Fold level
|
||||
vim.opt.foldlevel = 99
|
||||
vim.opt.foldlevelstart = 99
|
||||
vim.opt.foldminlines = 3
|
||||
vim.opt.foldnestmax = 5
|
||||
|
||||
-------------------------------------------------------------------------------
|
||||
--
|
||||
-- File type specified
|
||||
|
@ -136,6 +142,7 @@ vim.api.nvim_create_autocmd(bufReadFile, {
|
|||
callback = function () vim.wo.spell = true end,
|
||||
})
|
||||
|
||||
-- Set up fold method for each lang
|
||||
local folding_augroup = vim.api.nvim_create_augroup('folding', {})
|
||||
vim.api.nvim_create_autocmd(bufReadFile, {
|
||||
group = folding_augroup,
|
||||
|
|
Loading…
Reference in a new issue