From ce52de3605707e97c67b27e2f8afe759e1b11478 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20La=C3=ADn?= Date: Wed, 31 Jan 2024 10:34:41 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat(nvim):=20add=20keybindings=20f?= =?UTF-8?q?or=20py-requirements=20plugin=20in=20the=20python=20extra?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../lua/plugins/extras/lang/python-extended.lua | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.config/nvim/lua/plugins/extras/lang/python-extended.lua b/.config/nvim/lua/plugins/extras/lang/python-extended.lua index 2cdf1fd8..d3cb7268 100644 --- a/.config/nvim/lua/plugins/extras/lang/python-extended.lua +++ b/.config/nvim/lua/plugins/extras/lang/python-extended.lua @@ -32,6 +32,20 @@ return { }, }, opts = {}, + -- stylua: ignore + keys = { + { "pU", function() require("py-requirements").upgrade() end, desc = "Update Package (Python)" }, + { "pi", function() require("py-requirements").show_description() end, desc = "Package Info (Python)" }, + { "pa", function() require("py-requirements").upgrade_all() end, desc = "Update All Packages (Python)" }, + }, + }, + { + "folke/which-key.nvim", + opts = { + defaults = { + ["p"] = { name = " packages" }, + }, + }, }, { "luckasRanarison/nvim-devdocs",