feat: enhance Neovim configuration with NetRW disabling, auto number toggling, and code folding setup
This commit is contained in:
parent
3338d39206
commit
dfaacbb0e1
3 changed files with 104 additions and 4 deletions
22
lua/kickstart/plugins/nvim-ufo.lua
Normal file
22
lua/kickstart/plugins/nvim-ufo.lua
Normal 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,
|
||||
},
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue