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

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

View File

@ -6,6 +6,14 @@ snippet <> "Add sharp brackets"
⟨$1⟩$0 ⟨$1⟩$0
endsnippet endsnippet
snippet | "dvd"
endsnippet
snippet () "Braces"
($1)$0
endsnippet
# Mengen # Mengen
snippet N "Natural number" snippet N "Natural number"
@ -15,6 +23,9 @@ snippet Z "Whole numbers"
endsnippet endsnippet
snippet R "Real"
endsnippet
# Quantoren # Quantoren
snippet E "Exists" snippet E "Exists"

View File

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