From c84dce98ea6cc0a1daf8f9ce12b14107c9511f13 Mon Sep 17 00:00:00 2001 From: Yuta Katayama <8683947+yutkat@users.noreply.github.com> Date: Sat, 23 Apr 2022 16:13:31 +0900 Subject: [PATCH] Add HOW_TO_MAKE --- HOW_TO_MAKE.md | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 HOW_TO_MAKE.md diff --git a/HOW_TO_MAKE.md b/HOW_TO_MAKE.md new file mode 100644 index 0000000..21e6db9 --- /dev/null +++ b/HOW_TO_MAKE.md @@ -0,0 +1,35 @@ +# How to make this pluginlist + +## Data Sources + +- awesome-neovim: https://github.com/rockerBOO/awesome-neovim +- Reddit Neovim: https://www.reddit.com/r/neovim/ +- Star of people I follow: https://github.com/yutkat?tab=following + +## Rules for making + +- Only for Neovim plugins. Vim script-made plugin and plugin that also work with Vim are excluded. +- Put competing plugins in the same category for ease of selection. +- The one at the top of the category is my recommendation. +- For plugins with multiple functions (null-ls.nvim), write the function names in parentheses. +- Separate categories as much as possible. + +## Tips + +### LuaSnip snippet for easy badge pasting + +```lua + s("badge_link", { + t({ "- [" }), + i(1, { "repo/name" }), + f(function(args, snip) + return string.format( + "](https://github.com/%s) ![](https://img.shields.io/github/stars/%s) ![](https://img.shields.io/github/last-commit/%s) ![](https://img.shields.io/github/commit-activity/y/%s)", + args[1][1], + args[1][1], + args[1][1], + args[1][1] + ) + end, { 1 }), + }), +```