feat: enhance Neovim configuration with NetRW disabling, auto number toggling, and code folding setup

This commit is contained in:
Satya Prakash 2025-08-03 18:53:36 +05:30
parent 3338d39206
commit dfaacbb0e1
No known key found for this signature in database
GPG key ID: 0C22F9018516C980
3 changed files with 104 additions and 4 deletions

View file

@ -0,0 +1,22 @@
return {
{
'kevinhwang91/nvim-ufo',
dependencies = {
'kevinhwang91/promise-async',
'nvim-treesitter/nvim-treesitter',
},
config = function()
vim.o.foldcolumn = '1' -- '0' does not show the fold column, higher values increase the width
vim.o.foldlevel = 5 -- Using ufo provider need a large value, feel free to decrease the value
vim.o.foldlevelstart = 99
vim.o.foldenable = true
require('ufo').setup {
provider_selector = function(bufnr, filetype, buftype)
return { 'treesitter', 'indent' }
end,
}
end,
},
}