chivalryq / dotfiles

Manage dotfiles
1 stars 1 forks source link

vim.opt.nofoldenable = true #1

Closed haunt98 closed 1 year ago

haunt98 commented 1 year ago

After searching with github code search, I found that you have same problem with me

Can not do this:

vim.opt.nofoldenable = true

But you can do this:

vim.opt.foldenable = false

Hope it helps!

chivalryq commented 1 year ago

Thanks! It's a method from vimscript. In VimScript we can write:

set nofoo

I guess I migrate from there so... Anyway thank you for reminding!

haunt98 commented 1 year ago

Yeah, I'm just confuse when migrate my init.vim to init.lua (from vimscript to lua) too :D

chivalryq commented 1 year ago

I have a article about migration. But it's in Chinese. It may help so I post it here: https://chivalryq.github.io/docs/Neovim/migrate_to_lua

However, some of the api may be outdated for latest neovim.