Closed krishnakumarg1984 closed 1 year ago
Can confirm, facing this. @klen please help.
@listout This repository looks abandoned.
A more modern lua
based replacement https://github.com/MunifTanjim/exrc.nvim is working well for me.
@krishnakumarg1984 Thank you for the report. The issue has been fixed.
@klen In some commit between tags 1.1.1 and 1.2.0, the plugin has broken. i.e. the detection of local configuration files doesn't happen correctly.
To reproduce
nvim-config-local
with its default config for thesetup{}
. In particular, ensure that verbose messages about local config loading is present i.e. not silent.my_cpp_project
and is git tracked. i.e. there is the usual.git
folder in this directory.vimrc.lua
file in this project root. Maybe set something non-default, but trivialvim.g.list = true
perhapsnvim
without any file args, or evennvim .vimrc.lua
. The local config is correctly set. Mark this file as trusted.src
within the project i.e.my_cpp_project/src
.my_cpp_project
folder, edit a simple c++ file, sayhello_world.cpp
and close it afterwards.nvim src/hello_world.cpp
. We can see that the local config folder detection has not happened, and list chars are not present. Furthermore, issuing:messages
confirms to us that the root file detection has not happened.:ConfigEdit
etc command works fine even after the local vimrc detection failed. The plugin also works fine when openingnvim
at the project root without any arguments whatsoever. It also works fine when issuingnvim .vimrc.lua
(i.e. the trusted local config file is detected and loaded) and thereafter editing the C++ file in the subfolder works fine (i.e. uses the local rc settings).Now repeat the steps 1-6 above with plugin version tag
1.1.1
. Everything works fine. Repeat with plugin version tag1.2.0
. It breaks as per above description.