From 4836b80cb588d9f37bd99e95c0e0474e477c90e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20La=C3=ADn?= Date: Sat, 30 Mar 2024 17:35:29 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat(nvim):=20add=20new=20plugin=20?= =?UTF-8?q?to=20the=20github=20extra=20for=20gist=20management?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .config/nvim/.github/README.md | 1 + .config/nvim/lazy-lock.json | 2 +- .../lua/plugins/extras/editor/git/github.lua | 17 +++++++++++++++++ 3 files changed, 19 insertions(+), 1 deletion(-) diff --git a/.config/nvim/.github/README.md b/.config/nvim/.github/README.md index 32976baf..a43ec64e 100644 --- a/.config/nvim/.github/README.md +++ b/.config/nvim/.github/README.md @@ -274,6 +274,7 @@ 🐙 Github - [pwntester/octo.nvim](https://dotfyle.com/plugins/pwntester/octo.nvim) +- [rawnly/gist.nvim](https://dotfyle.com/plugins/rawnly/gist.nvim) diff --git a/.config/nvim/lazy-lock.json b/.config/nvim/lazy-lock.json index b29abddf..e465e347 100644 --- a/.config/nvim/lazy-lock.json +++ b/.config/nvim/lazy-lock.json @@ -72,7 +72,7 @@ "nvim-puppeteer": { "branch": "main", "commit": "ea340595967919222f3ba5c6c6def0787a336c82" }, "nvim-recorder": { "branch": "main", "commit": "61531ea45819e7a2c267c191360cee9ff269fc6b" }, "nvim-spectre": { "branch": "master", "commit": "2b012554a2536465243c0dff3605b5927c49ed23" }, - "nvim-treesitter": { "branch": "master", "commit": "5127a844073d56df9ee4e64ccfc17ecc294e38b5" }, + "nvim-treesitter": { "branch": "master", "commit": "6e0b031ebb212e7082bc3007f8b9614cb393465c" }, "nvim-treesitter-context": { "branch": "master", "commit": "f19766163c18515fb4d3c12d572bf9cba6cdb990" }, "nvim-treesitter-endwise": { "branch": "master", "commit": "60e8c288e011403f248b5f6478dde12bed8a6c55" }, "nvim-treesitter-textobjects": { "branch": "master", "commit": "d2a4ffc22d9d38d44edb73da007b3cf43451e9b4" }, diff --git a/.config/nvim/lua/plugins/extras/editor/git/github.lua b/.config/nvim/lua/plugins/extras/editor/git/github.lua index aafeaaf1..06a5a6e1 100644 --- a/.config/nvim/lua/plugins/extras/editor/git/github.lua +++ b/.config/nvim/lua/plugins/extras/editor/git/github.lua @@ -32,9 +32,26 @@ return { ["Gl"] = { name = "label" }, ["Ge"] = { name = "reaction" }, ["GR"] = { name = "review" }, + ["Gg"] = { name = "gist" }, }, }, }, + { + "Rawnly/gist.nvim", + cmd = { "GistCreate", "GistCreateFromFile", "GistsList" }, + dependencies = { + "samjwill/nvim-unception", + init = function() + vim.g.unception_block_while_host_edits = true + end, + }, + opts = {}, + keys = { + { prefix .. "gc", "GistCreate", desc = "Create a Gist" }, + { prefix .. "gf", "GistCreateFromFile", desc = "Create a Gist from File" }, + { prefix .. "gl", "GistsList", desc = "List Gists" }, + }, + }, { "pwntester/octo.nvim", dependencies = {