diff --git a/nvim/lua/settings.lua b/nvim/lua/settings.lua index 238191e..2dccf3f 100644 --- a/nvim/lua/settings.lua +++ b/nvim/lua/settings.lua @@ -6,9 +6,12 @@ vim.opt.cursorline = true -- Highlight vim.opt.expandtab = true -- Expand tabs into spaces vim.opt.fileformat = 'unix' -- Explicitly state that files should use the unix style EOL characters. vim.opt.fillchars = 'fold: ' -- Sets the character that fills in a fold line +vim.opt.foldcolumn = '0' -- Disables the foldcolumn vim.opt.foldexpr = 'nvim_treesitter#foldexpr()' -- Uses Treesitter to determine where code folding should occur vim.opt.foldlevel = 10 -- Sets the initial level at which folds will be closed +vim.opt.foldlevelstart = 2 -- Sets the initial fold level vim.opt.foldmethod = 'expr' -- Attempt to use the syntax of a file to set folds. +vim.opt.foldnestmax = 4 -- Maximum level of fold nesting vim.opt.formatoptions = 'cqrto' -- Allow auto insertion of comment lines when using o or O on a comment. vim.opt.list = true -- Show the listchars vim.opt.listchars = 'tab:|·,trail:¬,extends:>,precedes:<,nbsp:+' -- Characters to display when showing whitespace