kickstart.nvim
kickstart.nvim copied to clipboard
Modeline is ignored on save if default values are set
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:
- in section with
vim.osettings add:
vim.o.foldmethod = 'syntax'
- in modeline append:
fdm=indent
- save
-
:set fdmsayssyntaxand notindentormanual(default) - reopen file with
:e -
:set fdmsaysindent
Desktop (please complete the following information):
- OS: Manjaro Linux 22.0.0
- Terminal: urxvt v9.30
Neovim Version
- Output of running
:versionfrom inside of neovim:
NVIM v0.8.1
Build type: Release
LuaJIT 2.1.0-beta3
Compiled by builduser
Features: +acl +iconv +tui