fix(nvim): Only run NixDevelop if flake.nix is present

This commit is contained in:
demenik
2025-12-16 19:58:04 +01:00
parent 9c8b4433f1
commit 67f6b04cc5

View File

@@ -27,7 +27,11 @@
''
vim.api.nvim_create_autocmd("VimEnter", {
desc = "Automatically enter Nix devshell",
command = "NixDevelop",
callback = function()
if vim.fn.filereadable "flake.nix" == 1 then
vim.cmd "NixDevelop"
end
end,
})
'';
}