From 3f6d3244496bac2c98ca726619a283652dae9de6 Mon Sep 17 00:00:00 2001 From: Juliano Barbosa Date: Fri, 23 Aug 2024 08:50:53 -0300 Subject: [PATCH] chore(plugins): add f-strings and neogen plugins --- lua/custom/plugins/f-strings.lua | 17 +++++++++++++++++ lua/custom/plugins/neogen.lua | 29 +++++++++++++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 lua/custom/plugins/f-strings.lua create mode 100644 lua/custom/plugins/neogen.lua diff --git a/lua/custom/plugins/f-strings.lua b/lua/custom/plugins/f-strings.lua new file mode 100644 index 00000000..44ca8469 --- /dev/null +++ b/lua/custom/plugins/f-strings.lua @@ -0,0 +1,17 @@ +-- You can add your own plugins here or in other files in this directory! +-- I promise not to create any merge conflicts in this directory :) +-- +-- See the kickstart.nvim README for more information +return { + + -- f-strings + -- - auto-convert strings to f-strings when typing `{}` in a string + -- - also auto-converts f-strings back to regular strings when removing `{}` + { + 'chrisgrieser/nvim-puppeteer', + dependencies = 'nvim-treesitter/nvim-treesitter', + }, +} + +-- The line beneath this is called `modeline`. See `:help modeline` +-- vim: ts=2 sts=2 sw=2 et diff --git a/lua/custom/plugins/neogen.lua b/lua/custom/plugins/neogen.lua new file mode 100644 index 00000000..767829db --- /dev/null +++ b/lua/custom/plugins/neogen.lua @@ -0,0 +1,29 @@ +-- You can add your own plugins here or in other files in this directory! +-- I promise not to create any merge conflicts in this directory :) +-- +-- See the kickstart.nvim README for more information +-- +return { + ----------------------------------------------------------------------------- + -- EDITING SUPPORT PLUGINS + -- some plugins that help with python-specific editing operations + + -- Docstring creation + -- - quickly create docstrings via `a` + { + 'danymat/neogen', + opts = true, + keys = { + { + 'a', + function() + require('neogen').generate() + end, + desc = 'Add Docstring', + }, + }, + }, +} + +-- The line beneath this is called `modeline`. See `:help modeline` +-- vim: ts=2 sts=2 sw=2 et