{"id":31040004,"url":"https://github.com/marcoslopezm/latex-snippets","last_synced_at":"2026-05-07T00:33:53.529Z","repository":{"id":312227701,"uuid":"1046756536","full_name":"MarcosLopezM/latex-snippets","owner":"MarcosLopezM","description":"Nvim + LaTeX snippets setup","archived":false,"fork":false,"pushed_at":"2025-08-29T07:22:54.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-29T11:12:11.939Z","etag":null,"topics":["latex","lua","luasnip","nvim","snippets"],"latest_commit_sha":null,"homepage":"","language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MarcosLopezM.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-08-29T07:10:32.000Z","updated_at":"2025-08-29T07:29:17.000Z","dependencies_parsed_at":"2025-08-29T11:13:39.813Z","dependency_job_id":"e4248082-ffec-4229-9c13-c9f706ad683e","html_url":"https://github.com/MarcosLopezM/latex-snippets","commit_stats":null,"previous_names":["marcoslopezm/latex-snippets"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/MarcosLopezM/latex-snippets","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MarcosLopezM%2Flatex-snippets","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MarcosLopezM%2Flatex-snippets/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MarcosLopezM%2Flatex-snippets/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MarcosLopezM%2Flatex-snippets/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MarcosLopezM","download_url":"https://codeload.github.com/MarcosLopezM/latex-snippets/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MarcosLopezM%2Flatex-snippets/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275076599,"owners_count":25401319,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-14T02:00:10.474Z","response_time":75,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["latex","lua","luasnip","nvim","snippets"],"created_at":"2025-09-14T08:03:20.543Z","updated_at":"2026-05-07T00:33:53.481Z","avatar_url":"https://github.com/MarcosLopezM.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NVim + LaTeX snippets setup\n\n## NVim configuration\n\nCopy `luasnip.lua` to `~/.config/nvim/lua/plugins` assuming you're using [LazyVim](https://www.lazyvim.org/)\nas your plugin manager.\n\n```lua\nreturn {\n    {\n        \"L3MON4D3/LuaSnip\",\n        build = \"make install_jsregexp\",\n        dependencies = {\n            \"rafamadriz/friendly-snippets\",\n        },\n        config = function()\n            local ls = require(\"luasnip\")\n\n            require(\"luasnip.loaders.from_lua\").lazy_load({\n                paths = { \"~/.config/nvim/lua/snippets\", \"~/.config/nvim/lua/snippets/tex\" },\n            })\n\n            -- User config\n            ls.config.set_config({\n                enable_autosnippets = true,\n                store_selection_keys = \"\u003cTab\u003e\",\n                update_events = \"TextChanged,TextChangedI\",\n            })\n\n            -- Keybindings\n            -- Expand or jump forward\n            vim.keymap.set({ \"i\", \"s\" }, \"jk\", function()\n                if ls.expand_or_jumpable() then\n                    return \"\u003cPlug\u003eluasnip-expand-or-jump\"\n                else\n                    return \"jk\"\n                end\n            end, { expr = true, silent = true })\n\n            -- Jump backward\n            vim.keymap.set({ \"i\", \"s\" }, \"kl\", function()\n                if ls.expand_or_jumpable() then\n                    return \"\u003cPlug\u003eluasnip-jump-prev\"\n                else\n                    return \"kl\"\n                end\n            end, { expr = true, silent = true })\n\n            vim.keymap.set({ \"i\", \"s\" }, \"\u003cC-E\u003e\", function()\n                if ls.choice_active() then\n                    ls.change_choice(1)\n                end\n            end, { silent = true })\n\n            ls.filetype_extend(\"tex\", { \"htb\" })\n        end,\n    },\n}\n```\n\nAnd copy `tex.lua` to `~/.config/nvim/lua/snippets` to keep thing organized.\n\n\u003e [!NOTE]\n\u003e Snippets are still in development, I'm currently learning the syntax and best practices\n\u003e of the plugin.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcoslopezm%2Flatex-snippets","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarcoslopezm%2Flatex-snippets","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcoslopezm%2Flatex-snippets/lists"}