fix(nvim): Only run NixDevelop if flake.nix is present
This commit is contained in:
@@ -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,
|
||||
})
|
||||
'';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user