From 0b4cc2c36b8ce20fef8365c00c0425fa9397c355 Mon Sep 17 00:00:00 2001 From: Thomas Kendrick Date: Thu, 18 Dec 2025 19:42:00 +0000 Subject: [PATCH] feat: fix folding defaults --- init.lua | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/init.lua b/init.lua index bbafff1..d7c0797 100644 --- a/init.lua +++ b/init.lua @@ -199,8 +199,10 @@ require('lazy').setup({ 'kevinhwang91/nvim-ufo', requires = 'kevinhwang91/promise-async', config = function() - vim.o.foldcolumn = '1' - vim.o.conceallevel = 1 + vim.o.foldcolumn = '1' -- Optional: set fold column width + vim.o.foldlevel = 99 -- Ensures most folds are open by default + vim.o.foldlevelstart = 99 -- Ensures files open with all folds expanded + vim.o.foldenable = true -- Ensures folding is generally enabled require('ufo').setup { provider_selector = function(bufnr, filetype, buftype) return { 'treesitter', 'indent' } @@ -282,7 +284,7 @@ require('lazy').setup({ 'NeogitOrg/neogit', lazy = true, dependencies = { - 'nvim-lua/plenary.nvim', -- required + 'nvim-lua/plenary.nvim', -- required 'sindrets/diffview.nvim', -- optional - Diff integration -- Only one of these is needed. @@ -346,7 +348,7 @@ require('lazy').setup({ -- Then, because we use the `opts` key (recommended), the configuration runs -- after the plugin has been loaded as `require(MODULE).setup(opts)`. - { -- Useful plugin to show you pending keybinds. + { -- Useful plugin to show you pending keybinds. 'folke/which-key.nvim', event = 'VimEnter', -- Sets the loading event to 'VimEnter' opts = { @@ -395,7 +397,7 @@ require('lazy').setup({ { 'a', group = '[A]ppointedd' }, { 's', group = '[S]earch' }, { 't', group = '[T]oggle' }, - { 'h', group = 'Git [H]unk', mode = { 'n', 'v' } }, + { 'h', group = 'Git [H]unk', mode = { 'n', 'v' } }, { 'o', group = '[O]cto' }, { 'g', group = '[G]it' }, }, @@ -430,7 +432,7 @@ require('lazy').setup({ { 'nvim-telescope/telescope-ui-select.nvim' }, -- Useful for getting pretty icons, but requires a Nerd Font. - { 'nvim-tree/nvim-web-devicons', enabled = vim.g.have_nerd_font }, + { 'nvim-tree/nvim-web-devicons', enabled = vim.g.have_nerd_font }, }, config = function() -- Telescope is a fuzzy finder that comes with a lot of different things that @@ -538,7 +540,7 @@ require('lazy').setup({ 'WhoIsSethDaniel/mason-tool-installer.nvim', -- Useful status updates for LSP. - { 'j-hui/fidget.nvim', opts = {} }, + { 'j-hui/fidget.nvim', opts = {} }, -- Allows extra capabilities provided by blink.cmp 'saghen/blink.cmp',