kickstart.nvim icon indicating copy to clipboard operation
kickstart.nvim copied to clipboard

Modeline is ignored on save if default values are set

Open cprn opened this issue 3 years ago • 0 comments

Describe the bug When a default value is set, e.g. shiftwidth or foldmethod, the one from the modeline is ignored on save of init.lua.

To Reproduce On clean nvim with init.lua from kickstart.nvim:

  1. in section with vim.o settings add:
vim.o.foldmethod = 'syntax'
  1. in modeline append:
fdm=indent
  1. save
  2. :set fdm says syntax and not indent or manual (default)
  3. reopen file with :e
  4. :set fdm says indent

Desktop (please complete the following information):

  • OS: Manjaro Linux 22.0.0
  • Terminal: urxvt v9.30

Neovim Version

  • Output of running :version from inside of neovim:
NVIM v0.8.1                                                                                                                                                                                    
Build type: Release                                                                                                                                                                            
LuaJIT 2.1.0-beta3                                                                                                                                                                             
Compiled by builduser                                                                                                                                                                          
                                                                                                                                                                                               
Features: +acl +iconv +tui

cprn avatar Jan 15 '23 05:01 cprn