diff --git a/boxes/x230t/default.nix b/boxes/x230t/default.nix index 6f9f800..8762215 100644 --- a/boxes/x230t/default.nix +++ b/boxes/x230t/default.nix @@ -20,6 +20,7 @@ thunderbird hue-cli texliveSmall + latexrun strawberry ]; diff --git a/flake.lock b/flake.lock index 44a37b6..321bd9b 100644 --- a/flake.lock +++ b/flake.lock @@ -25,11 +25,11 @@ }, "locked": { "dir": "pkgs/firefox-addons", - "lastModified": 1706306805, - "narHash": "sha256-BWJdcDmpqZuxCStx4RUl5SD6uELy8hRa5YzwFTdWrts=", + "lastModified": 1708805268, + "narHash": "sha256-TyB6HacqcoIoK8tf5mwk/K9bkexCxjJsVXBp4+cbATI=", "owner": "rycee", "repo": "nur-expressions", - "rev": "24985136f4a5f98254e88c26d428114d206c2565", + "rev": "211c45ca8c36d7aebcff3e4b548142093fc85857", "type": "gitlab" }, "original": { @@ -77,11 +77,11 @@ ] }, "locked": { - "lastModified": 1705659542, - "narHash": "sha256-WA3xVfAk1AYmFdwghT7mt/erYpsU6JPu9mdTEP/e9HQ=", + "lastModified": 1706981411, + "narHash": "sha256-cLbLPTL1CDmETVh4p0nQtvoF+FSEjsnJTFpTxhXywhQ=", "owner": "nix-community", "repo": "home-manager", - "rev": "10cd9c53115061aa6a0a90aad0b0dde6a999cdb9", + "rev": "652fda4ca6dafeb090943422c34ae9145787af37", "type": "github" }, "original": { @@ -164,11 +164,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1706098335, - "narHash": "sha256-r3dWjT8P9/Ah5m5ul4WqIWD8muj5F+/gbCdjiNVBKmU=", + "lastModified": 1708702655, + "narHash": "sha256-qxT5jSLhelfLhQ07+AUxSTm1VnVH+hQxDkQSZ/m/Smo=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "a77ab169a83a4175169d78684ddd2e54486ac651", + "rev": "c5101e457206dd437330d283d6626944e28794b3", "type": "github" }, "original": { diff --git a/home/nvim/init.lua b/home/nvim/init.lua index 50fff46..0d891a5 100644 --- a/home/nvim/init.lua +++ b/home/nvim/init.lua @@ -156,4 +156,21 @@ inoremap('', function() require('better-digraphs').digraphs("insert") end) +-- luasnip configuration {{{ +local luasnip = require("luasnip") +local ls_extras = require("luasnip.extras") +require("luasnip.loaders.from_snipmate").lazy_load() +vim.cmd[[ + imap luasnip#expand_or_jumpable() ? 'luasnip-expand-or-jump' : '' +]] + +luasnip.add_snippets("tex", { + luasnip.snippet("env", { + luasnip.text_node("\\begin{"), luasnip.insert_node(1), luasnip.text_node("}"), + luasnip.text_node({ "", "\t" }), luasnip.insert_node(0), + luasnip.text_node({ "", "\\end{" }), ls_extras.rep(1), luasnip.text_node("}") + }) +}) +-- }}} + return packer