feat: fix folding defaults
This commit is contained in:
16
init.lua
16
init.lua
@@ -199,8 +199,10 @@ require('lazy').setup({
|
|||||||
'kevinhwang91/nvim-ufo',
|
'kevinhwang91/nvim-ufo',
|
||||||
requires = 'kevinhwang91/promise-async',
|
requires = 'kevinhwang91/promise-async',
|
||||||
config = function()
|
config = function()
|
||||||
vim.o.foldcolumn = '1'
|
vim.o.foldcolumn = '1' -- Optional: set fold column width
|
||||||
vim.o.conceallevel = 1
|
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 {
|
require('ufo').setup {
|
||||||
provider_selector = function(bufnr, filetype, buftype)
|
provider_selector = function(bufnr, filetype, buftype)
|
||||||
return { 'treesitter', 'indent' }
|
return { 'treesitter', 'indent' }
|
||||||
@@ -282,7 +284,7 @@ require('lazy').setup({
|
|||||||
'NeogitOrg/neogit',
|
'NeogitOrg/neogit',
|
||||||
lazy = true,
|
lazy = true,
|
||||||
dependencies = {
|
dependencies = {
|
||||||
'nvim-lua/plenary.nvim', -- required
|
'nvim-lua/plenary.nvim', -- required
|
||||||
'sindrets/diffview.nvim', -- optional - Diff integration
|
'sindrets/diffview.nvim', -- optional - Diff integration
|
||||||
|
|
||||||
-- Only one of these is needed.
|
-- Only one of these is needed.
|
||||||
@@ -346,7 +348,7 @@ require('lazy').setup({
|
|||||||
-- Then, because we use the `opts` key (recommended), the configuration runs
|
-- Then, because we use the `opts` key (recommended), the configuration runs
|
||||||
-- after the plugin has been loaded as `require(MODULE).setup(opts)`.
|
-- 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',
|
'folke/which-key.nvim',
|
||||||
event = 'VimEnter', -- Sets the loading event to 'VimEnter'
|
event = 'VimEnter', -- Sets the loading event to 'VimEnter'
|
||||||
opts = {
|
opts = {
|
||||||
@@ -395,7 +397,7 @@ require('lazy').setup({
|
|||||||
{ '<leader>a', group = '[A]ppointedd' },
|
{ '<leader>a', group = '[A]ppointedd' },
|
||||||
{ '<leader>s', group = '[S]earch' },
|
{ '<leader>s', group = '[S]earch' },
|
||||||
{ '<leader>t', group = '[T]oggle' },
|
{ '<leader>t', group = '[T]oggle' },
|
||||||
{ '<leader>h', group = 'Git [H]unk', mode = { 'n', 'v' } },
|
{ '<leader>h', group = 'Git [H]unk', mode = { 'n', 'v' } },
|
||||||
{ '<leader>o', group = '[O]cto' },
|
{ '<leader>o', group = '[O]cto' },
|
||||||
{ '<leader>g', group = '[G]it' },
|
{ '<leader>g', group = '[G]it' },
|
||||||
},
|
},
|
||||||
@@ -430,7 +432,7 @@ require('lazy').setup({
|
|||||||
{ 'nvim-telescope/telescope-ui-select.nvim' },
|
{ 'nvim-telescope/telescope-ui-select.nvim' },
|
||||||
|
|
||||||
-- Useful for getting pretty icons, but requires a Nerd Font.
|
-- 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()
|
config = function()
|
||||||
-- Telescope is a fuzzy finder that comes with a lot of different things that
|
-- 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',
|
'WhoIsSethDaniel/mason-tool-installer.nvim',
|
||||||
|
|
||||||
-- Useful status updates for LSP.
|
-- Useful status updates for LSP.
|
||||||
{ 'j-hui/fidget.nvim', opts = {} },
|
{ 'j-hui/fidget.nvim', opts = {} },
|
||||||
|
|
||||||
-- Allows extra capabilities provided by blink.cmp
|
-- Allows extra capabilities provided by blink.cmp
|
||||||
'saghen/blink.cmp',
|
'saghen/blink.cmp',
|
||||||
|
|||||||
Reference in New Issue
Block a user