Regenerate nvim config
This commit is contained in:
2
config/neovim/store/lazy-plugins/nvim-autopairs/.github/FUNDING.yml
vendored
Normal file
2
config/neovim/store/lazy-plugins/nvim-autopairs/.github/FUNDING.yml
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
custom: https://paypal.me/trieule1vn
|
||||
patreon: windwp
|
||||
71
config/neovim/store/lazy-plugins/nvim-autopairs/.github/ISSUE_TEMPLATE/bug_report.yml
vendored
Normal file
71
config/neovim/store/lazy-plugins/nvim-autopairs/.github/ISSUE_TEMPLATE/bug_report.yml
vendored
Normal file
@ -0,0 +1,71 @@
|
||||
name: Bug report
|
||||
description: Report a problem with nvim-autopairs
|
||||
labels: [bug]
|
||||
body:
|
||||
- type: markdown
|
||||
attributes:
|
||||
value: |
|
||||
Before reporting: search [existing issues](https://github.com/windwp/nvim-autopairs/issues) and make sure that both nvim-autopairs and its dependencies are updated to the latest version.
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: "Description"
|
||||
description: "A short description of the problem you are reporting."
|
||||
validations:
|
||||
required: true
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: "Mapping <cr> bug"
|
||||
description: "report a bug about mapping `<cr>` key and completion plugin"
|
||||
value: |
|
||||
1.If you report a bug about indent. Please remember that plugin doesn't do anything about indent.
|
||||
It just trigger the indent of your vim config so if you have wrong indent config then it will do wrong indent.
|
||||
You can check by select a block of code and press `==`
|
||||
2. provide result of command `:verbose imap <cr>`.
|
||||
validations:
|
||||
required: false
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: "Steps to reproduce"
|
||||
description: "Steps to reproduce using the minimal config provided below."
|
||||
placeholder: |
|
||||
- It will beter if you can provide a video of gif
|
||||
validations:
|
||||
required: false
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: "Minimal config"
|
||||
description: "Minimal(!) configuration necessary to reproduce the issue. Save this as `minimal.lua`. If _absolutely_ necessary, add plugins and config options from your `init.lua` at the indicated lines."
|
||||
render: Lua
|
||||
value: |
|
||||
vim.cmd [[set runtimepath=$VIMRUNTIME]]
|
||||
vim.cmd [[set packpath=/tmp/nvim/site]]
|
||||
local package_root = '/tmp/nvim/site/pack'
|
||||
local install_path = package_root .. '/packer/start/packer.nvim'
|
||||
local function load_plugins()
|
||||
require('packer').startup {
|
||||
{
|
||||
'wbthomason/packer.nvim',
|
||||
{
|
||||
'windwp/nvim-autopairs',
|
||||
},
|
||||
-- ADD PLUGINS THAT ARE _NECESSARY_ FOR REPRODUCING THE ISSUE
|
||||
},
|
||||
config = {
|
||||
package_root = package_root,
|
||||
compile_path = install_path .. '/plugin/packer_compiled.lua',
|
||||
display = { non_interactive = true },
|
||||
},
|
||||
}
|
||||
end
|
||||
_G.load_config = function()
|
||||
require('nvim-autopairs').setup()
|
||||
end
|
||||
if vim.fn.isdirectory(install_path) == 0 then
|
||||
print("Installing nvim-autopairs and dependencies.")
|
||||
vim.fn.system { 'git', 'clone', '--depth=1', 'https://github.com/wbthomason/packer.nvim', install_path }
|
||||
end
|
||||
load_plugins()
|
||||
require('packer').sync()
|
||||
vim.cmd [[autocmd User PackerComplete ++once echo "Ready!" | lua load_config()]]
|
||||
validations:
|
||||
required: true
|
||||
2
config/neovim/store/lazy-plugins/nvim-autopairs/.github/ISSUE_TEMPLATE/config.yml
vendored
Normal file
2
config/neovim/store/lazy-plugins/nvim-autopairs/.github/ISSUE_TEMPLATE/config.yml
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
blank_issues_enabled: false
|
||||
|
||||
20
config/neovim/store/lazy-plugins/nvim-autopairs/.github/ISSUE_TEMPLATE/feature_request.md
vendored
Normal file
20
config/neovim/store/lazy-plugins/nvim-autopairs/.github/ISSUE_TEMPLATE/feature_request.md
vendored
Normal file
@ -0,0 +1,20 @@
|
||||
---
|
||||
name: Feature request
|
||||
about: Suggest an idea for this project
|
||||
title: ''
|
||||
labels: enhancement
|
||||
assignees: ''
|
||||
|
||||
---
|
||||
|
||||
**Is your feature request related to a problem? Please describe.**
|
||||
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
|
||||
|
||||
**Describe the solution you'd like**
|
||||
A clear and concise description of what you want to happen.
|
||||
|
||||
**Describe alternatives you've considered**
|
||||
A clear and concise description of any alternative solutions or features you've considered.
|
||||
|
||||
**Additional context**
|
||||
Add any other context or screenshots about the feature request here.
|
||||
7
config/neovim/store/lazy-plugins/nvim-autopairs/.github/generated-files-bot.yml
vendored
Normal file
7
config/neovim/store/lazy-plugins/nvim-autopairs/.github/generated-files-bot.yml
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
generatedFiles:
|
||||
- path: "doc/nvim-autopairs.txt"
|
||||
- path: "doc/nvim-autopairs-rules.txt"
|
||||
message: "`nvim-autopairs.txt` is generated from README.md. Make changes there instead."
|
||||
ignoreAuthors:
|
||||
- 'github-actions[bot]'
|
||||
- 'windwp'
|
||||
19
config/neovim/store/lazy-plugins/nvim-autopairs/.github/stale.yml
vendored
Normal file
19
config/neovim/store/lazy-plugins/nvim-autopairs/.github/stale.yml
vendored
Normal file
@ -0,0 +1,19 @@
|
||||
# Number of days of inactivity before an issue becomes stale
|
||||
daysUntilStale: 60
|
||||
# Number of days of inactivity before a stale issue is closed
|
||||
daysUntilClose: 7
|
||||
# Issues with these labels will never be considered stale
|
||||
exemptLabels:
|
||||
- pinned
|
||||
- security
|
||||
# Label to use when marking an issue as stale
|
||||
staleLabel: wontfix
|
||||
# Comment to post when marking an issue as stale. Set to `false` to disable
|
||||
markComment: >
|
||||
This issue has been automatically marked as stale because it has not had
|
||||
recent activity. It will be closed if no further activity occurs. Thank you
|
||||
for your contributions.
|
||||
# Comment to post when closing a stale issue. Set to `false` to disable
|
||||
closeComment: false
|
||||
|
||||
only: issues
|
||||
44
config/neovim/store/lazy-plugins/nvim-autopairs/.github/workflows/ci.yml
vendored
Normal file
44
config/neovim/store/lazy-plugins/nvim-autopairs/.github/workflows/ci.yml
vendored
Normal file
@ -0,0 +1,44 @@
|
||||
name: Tests
|
||||
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
x64-ubuntu:
|
||||
name: X64-ubuntu
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
include:
|
||||
- os: ubuntu-20.04
|
||||
url: https://github.com/neovim/neovim/releases/latest/download/nvim-linux64.tar.gz
|
||||
manager: sudo apt-get
|
||||
packages: -y fd-find
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- run: date +%F > todays-date
|
||||
- name: Restore from todays cache
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: _neovim
|
||||
key: ${{ runner.os }}-${{ matrix.url }}-${{ hashFiles('todays-date') }}
|
||||
- name: Prepare
|
||||
run: |
|
||||
${{ matrix.manager }} update
|
||||
${{ matrix.manager }} install ${{ matrix.packages }}
|
||||
test -d _neovim || {
|
||||
mkdir -p _neovim
|
||||
curl -sL ${{ matrix.url }} | tar xzf - --strip-components=1 -C "${PWD}/_neovim"
|
||||
}
|
||||
mkdir -p ~/.local/share/nvim/site/pack/vendor/start
|
||||
git clone --depth 1 https://github.com/nvim-lua/plenary.nvim ~/.local/share/nvim/site/pack/vendor/start/plenary.nvim
|
||||
git clone --depth 1 https://github.com/nvim-treesitter/nvim-treesitter ~/.local/share/nvim/site/pack/vendor/start/nvim-treesitter
|
||||
git clone --depth 1 https://github.com/nvim-treesitter/playground ~/.local/share/nvim/site/pack/vendor/start/playground
|
||||
ln -s $(pwd) ~/.local/share/nvim/site/pack/vendor/start
|
||||
- name: Run tests
|
||||
run: |
|
||||
export PATH="${PWD}/_neovim/bin:${PATH}"
|
||||
export VIM="${PWD}/_neovim/share/nvim/runtime"
|
||||
nvim --headless -u tests/minimal.vim -c "TSInstallSync all" -c "q"
|
||||
make test
|
||||
|
||||
51
config/neovim/store/lazy-plugins/nvim-autopairs/.github/workflows/docs.yml
vendored
Normal file
51
config/neovim/store/lazy-plugins/nvim-autopairs/.github/workflows/docs.yml
vendored
Normal file
@ -0,0 +1,51 @@
|
||||
name: panvimdoc
|
||||
|
||||
on:
|
||||
push:
|
||||
paths:
|
||||
- README.md
|
||||
branches:
|
||||
- master
|
||||
jobs:
|
||||
docs:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: write
|
||||
pull-requests: write
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
name: markdown to vimdoc
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Setup git
|
||||
run: |
|
||||
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
||||
git config --local user.name "github-actions[bot]"
|
||||
printf 'VIMDOC_BRANCH=bot/vimdoc/%s\n' ${GITHUB_REF#refs/heads/} >> $GITHUB_ENV
|
||||
- name: Checkout to vimdoc branch
|
||||
run: git checkout -b ${VIMDOC_BRANCH}
|
||||
- name: panvimdoc
|
||||
uses: kdheepak/panvimdoc@v2.7.1
|
||||
with:
|
||||
vimdoc: nvim-autopairs
|
||||
description: A super powerful autopair for Neovim.
|
||||
- name: clone rules api docs
|
||||
run: |
|
||||
git clone --depth 1 https://github.com/windwp/nvim-autopairs.wiki.git ../nvim-autopairs.wiki
|
||||
cp ../nvim-autopairs.wiki/Rules-API.md ./Rules-API.md
|
||||
- name: panvimdoc
|
||||
uses: kdheepak/panvimdoc@v2.7.1
|
||||
with:
|
||||
vimdoc: nvim-autopairs-rules
|
||||
description: nvim-autopairs rules
|
||||
pandoc: "Rules-API.md"
|
||||
toc: true
|
||||
- name: Create PR
|
||||
run: |
|
||||
if ! [[ -z $(git status -s) ]]; then
|
||||
git add doc/nvim-autopairs.txt
|
||||
git add doc/nvim-autopairs-rules.txt
|
||||
git commit -m "chore: generated vimdoc"
|
||||
git push --force https://${GITHUB_ACTOR}:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY} ${VIMDOC_BRANCH}
|
||||
gh pr create --fill --base ${GITHUB_REF#refs/heads/} --head ${VIMDOC_BRANCH} || true
|
||||
fi
|
||||
Reference in New Issue
Block a user