Update generated nvim config
This commit is contained in:
138
config/neovim/store/lazy-plugins/persisted.nvim/.github/ISSUE_TEMPLATE/bug_report.yml
vendored
Normal file
138
config/neovim/store/lazy-plugins/persisted.nvim/.github/ISSUE_TEMPLATE/bug_report.yml
vendored
Normal file
@ -0,0 +1,138 @@
|
||||
name: Bugs or configuration issues
|
||||
description: If you've already asked for help with a problem and confirmed something is broken with the plugin itself, create a bug report.
|
||||
title: "[Bug]: "
|
||||
labels: ["bug"]
|
||||
assignees: olimorris
|
||||
|
||||
body:
|
||||
- type: markdown
|
||||
attributes:
|
||||
value: |
|
||||
Thanks for taking the time to fill out this bug report! This form may seem onerous but it makes a resolution much quicker for you and I.
|
||||
- type: markdown
|
||||
attributes:
|
||||
value: |
|
||||
## Test with a `minimal.lua` file
|
||||
I know the temptation is to skip this step but please don't. With the quantity of plugins you have in your Neovim config, it's like searching for a needle in a haystack.
|
||||
|
||||
Firstly, test and run Neovim with the minimal config below. Be sure to add your Persisted.nvim config, saving to a `minimal.lua` file and adding any additional plugins you may need.
|
||||
```lua
|
||||
local root = "/tmp/persisted"
|
||||
|
||||
-- Set stdpaths to use root dir
|
||||
for _, name in ipairs({ "config", "data", "state", "cache" }) do
|
||||
vim.env[("XDG_%s_HOME"):format(name:upper())] = root .. "/" .. name
|
||||
end
|
||||
|
||||
-- Bootstrap lazy
|
||||
local lazypath = root .. "/plugins/lazy.nvim"
|
||||
if not vim.loop.fs_stat(lazypath) then
|
||||
vim.fn.system({
|
||||
"git",
|
||||
"clone",
|
||||
"--filter=blob:none",
|
||||
"--single-branch",
|
||||
"https://github.com/folke/lazy.nvim.git",
|
||||
lazypath,
|
||||
})
|
||||
end
|
||||
vim.opt.runtimepath:prepend(lazypath)
|
||||
|
||||
vim.opt.sessionoptions = "buffers,curdir,folds,globals,tabpages,winpos,winsize" -- Session options to store in the session
|
||||
|
||||
-- Install plugins
|
||||
local plugins = {
|
||||
{
|
||||
"olimorris/persisted.nvim",
|
||||
opts = {
|
||||
-- Your custom config here
|
||||
}
|
||||
},
|
||||
-- Put any other plugins here
|
||||
}
|
||||
require("lazy").setup(plugins, {
|
||||
root = root .. "/plugins",
|
||||
})
|
||||
```
|
||||
|
||||
Once you've updated for your config, run Neovim with this command:
|
||||
```sh
|
||||
nvim --clean -u minimal.lua
|
||||
```
|
||||
|
||||
Open some buffers and save the session with:
|
||||
```sh
|
||||
:SessionSave
|
||||
```
|
||||
|
||||
Then re-open neovim and load the session with:
|
||||
```sh
|
||||
:SessionLoad
|
||||
```
|
||||
|
||||
- type: textarea
|
||||
id: persisted-config
|
||||
attributes:
|
||||
label: Your `minimal.lua` config
|
||||
description: Please paste your minimal.lua config here
|
||||
placeholder: |
|
||||
```lua
|
||||
-- Your minimal.lua config here
|
||||
```
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: textarea
|
||||
id: errors
|
||||
attributes:
|
||||
label: Error messages
|
||||
description: Please paste any error messages you receive
|
||||
placeholder: |
|
||||
```lua
|
||||
-- Error messages here
|
||||
```
|
||||
validations:
|
||||
required: false
|
||||
|
||||
- type: textarea
|
||||
id: bug
|
||||
attributes:
|
||||
label: Describe the bug
|
||||
description: Please describe the bug and include any screenshots
|
||||
placeholder: |
|
||||
### What I expect to happen
|
||||
[Your text here]
|
||||
|
||||
### What actually happens
|
||||
[Your text here]
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: textarea
|
||||
id: reproduce
|
||||
attributes:
|
||||
label: Reproduce the bug
|
||||
description: Please include the steps to reproduce the bug
|
||||
placeholder: |
|
||||
Steps to reproduce:
|
||||
1.
|
||||
2.
|
||||
3.
|
||||
validations:
|
||||
required: false
|
||||
|
||||
- type: checkboxes
|
||||
id: final-checks
|
||||
attributes:
|
||||
label: Final checks
|
||||
description: |
|
||||
Before you submit, please make sure you have completed the following steps:
|
||||
options:
|
||||
- label: I have made sure this issue exists in the latest version of the plugin
|
||||
required: true
|
||||
- label: I have tested with the `minimal.lua` config file above and still get the issue
|
||||
required: true
|
||||
- label: I have used `SessionSave` to save the session before restarting Neovim and using `SessionLoad`
|
||||
required: true
|
||||
- label: I have made sure this is not a duplicate issue
|
||||
required: true
|
||||
8
config/neovim/store/lazy-plugins/persisted.nvim/.github/ISSUE_TEMPLATE/config.yml
vendored
Normal file
8
config/neovim/store/lazy-plugins/persisted.nvim/.github/ISSUE_TEMPLATE/config.yml
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
blank_issues_enabled: false
|
||||
contact_links:
|
||||
- name: Get Help
|
||||
url: https://github.com/olimorris/persisted.nvim/discussions/new?category=q-a
|
||||
about: If you can't get something to work the way you expect, open a question in the discussion forums.
|
||||
- name: Feature Request
|
||||
url: https://github.com/olimorris/persisted.nvim/discussions/new?category=ideas
|
||||
about: Suggest any ideas you have using the discussion forums.
|
||||
54
config/neovim/store/lazy-plugins/persisted.nvim/.github/workflows/ci.yml
vendored
Normal file
54
config/neovim/store/lazy-plugins/persisted.nvim/.github/workflows/ci.yml
vendored
Normal file
@ -0,0 +1,54 @@
|
||||
name: Continuous Integration
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
pull_request:
|
||||
branches: [main]
|
||||
|
||||
# Cancel any in-progress CI runs for a PR if it is updated
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
tests:
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
include:
|
||||
- os: ubuntu-20.04
|
||||
url: https://github.com/neovim/neovim/releases/download/nightly/nvim-linux64.tar.gz
|
||||
- os: ubuntu-20.04
|
||||
url: https://github.com/neovim/neovim/releases/download/v0.10.0/nvim-linux64.tar.gz
|
||||
- os: ubuntu-20.04
|
||||
url: https://github.com/neovim/neovim/releases/download/v0.9.0/nvim-linux64.tar.gz
|
||||
- os: ubuntu-20.04
|
||||
url: https://github.com/neovim/neovim/releases/download/v0.8.0/nvim-linux64.tar.gz
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- run: date +%F > todays-date
|
||||
- name: Restore from todays cache
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: _neovim
|
||||
key: ${{ runner.os }}-${{ matrix.url }}-${{ hashFiles('todays-date') }}
|
||||
|
||||
- name: Prepare
|
||||
run: |
|
||||
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
|
||||
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 --version
|
||||
make test
|
||||
Reference in New Issue
Block a user