Update
Some checks failed
Test Neovim config on push / build (ubuntu-20.04) (push) Has been cancelled

This commit is contained in:
2025-07-31 08:57:16 +02:00
parent 8564daf4b5
commit 3db17f9849
2 changed files with 14 additions and 3 deletions

View File

@@ -73,7 +73,7 @@ local function update_nix_interpreter()
})
return
end
local cmd = { "nix-instantiate", "--eval", filename }
local cmd = { "nix-instantiate", "--eval", "--strict", filename }
local output = vim.fn.systemlist(cmd)
if vim.v.shell_error ~= 0 then
table.insert(output, 1, "Error running nix-instantiate:")
@@ -85,8 +85,8 @@ end
-- @param
-- @short Closes the window and buffer of the interpreter
local function close_nix_interpreter()
vim.api.nvim_buf_delete(nix_interpreter_buffer)
vim.api.nvim_win_close(nix_interpreter_window)
vim.api.nvim_buf_delete(nix_interpreter_buffer, { unload = true })
vim.api.nvim_win_close(nix_interpreter_window, true)
end
vim.api.nvim_create_autocmd({ "BufEnter" }, {