From 30238c883d9f265d0ff27cf52fd35b6db1793c25 Mon Sep 17 00:00:00 2001 From: Joshua Finch Date: Wed, 29 Jan 2025 20:00:56 -0600 Subject: [PATCH] doc: adding some comments to the nvim settings file. --- nvim/lua/settings.lua | 3 +++ 1 file changed, 3 insertions(+) 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