Update
Test Neovim config on push / build (ubuntu-20.04) (push) Has been cancelled
Details
Test Neovim config on push / build (ubuntu-20.04) (push) Has been cancelled
Details
This commit is contained in:
parent
8564daf4b5
commit
3db17f9849
|
@ -6,6 +6,14 @@ snippet <> "Add sharp brackets"
|
|||
⟨$1⟩$0
|
||||
endsnippet
|
||||
|
||||
snippet | "dvd"
|
||||
∣
|
||||
endsnippet
|
||||
|
||||
snippet () "Braces"
|
||||
($1)$0
|
||||
endsnippet
|
||||
|
||||
# Mengen
|
||||
snippet N "Natural number"
|
||||
ℕ
|
||||
|
@ -15,6 +23,9 @@ snippet Z "Whole numbers"
|
|||
ℤ
|
||||
endsnippet
|
||||
|
||||
snippet R "Real"
|
||||
ℝ
|
||||
endsnippet
|
||||
|
||||
# Quantoren
|
||||
snippet E "Exists"
|
||||
|
|
|
@ -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" }, {
|
||||
|
|
Loading…
Reference in New Issue