From 41f28196d872ee03fe73aae160d5e513961e8cc7 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 20 Dec 2024 08:22:44 +0800 Subject: [PATCH] ci(record-key.nvim): detact record-key.nvim --- .ci/detach_plugin.sh | 24 +++++++++++++ .github/workflows/async.yml | 2 +- bundle/format.nvim/plugin/format.lua | 1 + bundle/record-key.nvim/README.md | 37 ++++++++++++++++++++ bundle/record-key.nvim/plugin/record-key.lua | 10 ++++++ 5 files changed, 73 insertions(+), 1 deletion(-) create mode 100644 bundle/record-key.nvim/README.md create mode 100644 bundle/record-key.nvim/plugin/record-key.lua diff --git a/.ci/detach_plugin.sh b/.ci/detach_plugin.sh index edd742786..02fd5391f 100755 --- a/.ci/detach_plugin.sh +++ b/.ci/detach_plugin.sh @@ -151,6 +151,30 @@ main () { _detact autoload/SpaceVim/api/vim/floating.vim _detact autoload/SpaceVim/api/data/dict.vim ;; + record-key.nvim) + git clone https://github.com/wsdjeg/record-key.nvim.git detach/$1 + cd detach/$1 + _checkdir plugin + _detact_bundle record-key.nvim plugin/record-key.lua + _detact_bundle record-key.nvim README.md + _checkdir lua/spacevim/plugin + _detact lua/spacevim/plugin/record-key.lua + _checkdir lua/spacevim/api + _detact lua/spacevim.lua + _detact lua/spacevim/logger.lua + _detact lua/spacevim/api.lua + _detact lua/spacevim/api/logger.lua + _detact lua/spacevim/api/notify.lua + _detact lua/spacevim/api/password.lua + _checkdir autoload/SpaceVim/api/neovim + _checkdir autoload/SpaceVim/api/vim + _checkdir autoload/SpaceVim/api/data + _detact autoload/SpaceVim/api.vim + _detact autoload/SpaceVim/api/notify.vim + _detact autoload/SpaceVim/api/neovim/floating.vim + _detact autoload/SpaceVim/api/vim/floating.vim + _detact autoload/SpaceVim/api/data/dict.vim + ;; cpicker.nvim) git clone https://github.com/wsdjeg/cpicker.nvim.git detach/$1 cd detach/$1 diff --git a/.github/workflows/async.yml b/.github/workflows/async.yml index edcb8d9c5..b4aa65975 100644 --- a/.github/workflows/async.yml +++ b/.github/workflows/async.yml @@ -7,7 +7,7 @@ jobs: strategy: fail-fast: false matrix: - detachPlugin: ["FlyGrep.vim", "dein-ui.vim", "vim-todo", "iedit.vim", "scrollbar.vim", "vim-chat", "vim-cheat", "xmake.vim", "GitHub.vim", "JavaUnit.vim", "git.vim", "cpicker.nvim", "SourceCounter.vim", "vim-zettelkasten", "format.nvim"] + detachPlugin: ["FlyGrep.vim", "dein-ui.vim", "vim-todo", "iedit.vim", "scrollbar.vim", "vim-chat", "vim-cheat", "xmake.vim", "GitHub.vim", "JavaUnit.vim", "git.vim", "cpicker.nvim", "SourceCounter.vim", "vim-zettelkasten", "format.nvim", "record-key.nvim"] runs-on: ubuntu-latest steps: - name: Checkout diff --git a/bundle/format.nvim/plugin/format.lua b/bundle/format.nvim/plugin/format.lua index f867dbf4f..d8cd49c27 100644 --- a/bundle/format.nvim/plugin/format.lua +++ b/bundle/format.nvim/plugin/format.lua @@ -17,3 +17,4 @@ end, { end end, }) + diff --git a/bundle/record-key.nvim/README.md b/bundle/record-key.nvim/README.md new file mode 100644 index 000000000..6bcab5e69 --- /dev/null +++ b/bundle/record-key.nvim/README.md @@ -0,0 +1,37 @@ +# record-key.nvim + +> _record-key.nvim_ is plugin to display pressed key in neovim. + +[![](https://spacevim.org/img/build-with-SpaceVim.svg)](https://spacevim.org) +[![GPLv3 License](https://img.spacevim.org/license-GPLv3-blue.svg)](LICENSE) + + + +- [Install](#install) +- [Usage](#usage) +- [Feedback](#feedback) + + + +## Install + +1. Using `record-key.nvim` in SpaceVim: + + This plugin is bundle with spacevim by default, and the key binding to toggle this feature is `SPC a r` + +2. Using `record-key.nvim` without SpaceVim: + +``` +Plug 'wsdjeg/record-key.nvim' +``` + +## Usage + +- `:RecordKeyToggle`: toggle record-key + +## Feedback + +The development of this plugin is in [`SpaceVim/bundle/record-key.nvim`](https://github.com/SpaceVim/SpaceVim/tree/master/bundle/record-key.nvim) directory. + +If you encounter any bugs or have suggestions, please file an issue in the [issue tracker](https://github.com/SpaceVim/SpaceVim/issues) + diff --git a/bundle/record-key.nvim/plugin/record-key.lua b/bundle/record-key.nvim/plugin/record-key.lua new file mode 100644 index 000000000..c9aa0a359 --- /dev/null +++ b/bundle/record-key.nvim/plugin/record-key.lua @@ -0,0 +1,10 @@ +--============================================================================= +-- record-key.lua --- record key in neovim +-- Copyright 2024 Eric Wong +-- Author: Eric Wong < wsdjeg@outlook.com > +-- URL: https://spacevim.org +-- License: GPLv3 +--============================================================================= +vim.api.nvim_create_user_command('RecordKeyToggle', function(_) + require('spacevim.plugin.record-key').toggle() +end, {})