Repository: nvim-lua/kickstart.nvim

Issue #300: Unable to change default options
Created: 2023-05-06T13:22:25Z
Describe the bug

Not possible to change default configuration due to Lazy.nvim messing with rtp
To Reproduce


Write file ~/.config/nvim/after/plugins/defaults.lua: containing: vim.o.clipboard = ''.
Start nvim with -V1 parameter: nvim -V1.
Run ex command: :verb set clipboard?.
Verify unchanged default value persists (clipboard=unnamedplus) and Last set from ~/code/kickstart.nvim/init.lua line 207.

Desktop


OS: Arch Linux
Terminal: Alacritty

Neovim Version

NVIM v0.9.0
Build type: Release
LuaJIT 2.1.0-beta3

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "/usr/share/nvim"

After some investigation and help received from the NeoVIM Matrix channel, it seems like Lazy.nvim messes with the rtp. Which is also confirmed by a smattering of print lines, which reveals a trail showing that loading lazy.nvim triggers the evaluation of ~/.config/nvim/after/plugins/defaults.lua prior to evaluating the remaining sections of init.lua.
I considered moving the lazy.nvim setup to the end of init.lua, but there's configuration of plugins in init.lua which defeats the purpose of being able to separate personal configuration with the default kickstart config, enabling clean merges of future commits.

Duplicate issue #205: After folder does not override past end of lazy block
Created: 2023-03-01T05:56:08Z
Describe the bug
Trying to override settings after lazy block like mouse mode does not work as it is called before the default init file sets it.
The idea is just to keep all my custom config in after/plugin or lua/custom folders. On line 181 the init file notes that these folders can be used to keep any custom config and that does not seem to be true for certain items. I can easily remove the line I just want to know if there was a way I was missing.
To Reproduce
Steps to reproduce the behavior:

Place .lua file in after/plugin/somefile.lua with vim.opt.mouse = ''
Right click on some text from a file. Mouse mode will not be overridden.

Desktop (please complete the following information):

OS: Fedora 37 Gnome
Terminal: Gnome terminal

** Neovim Version **

Output of running :version from inside of neovim:

:version                                                                                                 
NVIM v0.8.3
Build type: RelWithDebInfo
LuaJIT 2.1.0-beta3
Compilation: /usr/bin/gcc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wa
ll -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/re
dhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=gener
ic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -DNVIM_TS_HAS_SET_MATCH_LIMIT -DN
VIM_TS_HAS_SET_ALLOCATOR -O2 -g -Og -g -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -
std=gnu99 -Wshadow -Wconversion -Wdouble-promotion -Wmissing-noreturn -Wmissing-format-attribute -Wmissing
-prototypes -Wimplicit-fallthrough -Wvla -fstack-protector-strong -fno-common -fdiagnostics-color=auto -DI
NCLUDE_GENERATED_DECLARATIONS -D_GNU_SOURCE -DNVIM_MSGPACK_HAS_FLOAT32 -DNVIM_UNIBI_HAS_VAR_FROM -DMIN_LOG
_LEVEL=3 -I/builddir/build/BUILD/neovim-0.8.3/redhat-linux-build/cmake.config -I/builddir/build/BUILD/neov
im-0.8.3/src -I/usr/include -I/usr/include/luajit-2.1 -I/builddir/build/BUILD/neovim-0.8.3/redhat-linux-bu
ild/src/nvim/auto -I/builddir/build/BUILD/neovim-0.8.3/redhat-linux-build/include
Compiled by mockbuild@koji

Features: +acl +iconv +tui
See ":help feature-compile"

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "/usr/share/nvim"

Run :checkhealth for more info

Closing comment (2023-05-15T16:40:05Z): Resolving as duplicate of #300