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
|
⟨$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"
|
||||||
|
|
|
@ -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" }, {
|
||||||
|
|
Loading…
Reference in New Issue