
Project specific .nvim.lua file via exrc is not being sourced
Hello!
I want to use project specific .nvim.lua files, so I set vim.o.exrc = true and vim.o.secure = true in my Neovim configuration. Then I open neovim from the project, and execute :trust, and restart neovim. The issue is that the file is not being sourced automatically at startup. Am I doing something wrong?
EDIT:
It might be my config, because if I run neovim with NVIM_APPNAME from a config that literally only has the exrc options on, and I trust the project .nvim.lua, then it works. Anyone have a clue what it might be?
This is my Neovim config: https://github.com/diego-velez/nvim
SOLVED:
I was using the MiniMax way of structuring my config, and I had my options file in the plugin/ directory. Setting vim.o.exrc = true and vim.o.secure = true inside my init.lua directly fixed the problem.