Skip to content

Commit bbd6a4a

Browse files
authored
Initial commit
0 parents  commit bbd6a4a

File tree

21 files changed

+720
-0
lines changed

21 files changed

+720
-0
lines changed

.busted

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
return {
2+
_all = {
3+
coverage = false,
4+
lpath = "lua/?.lua;lua/?/init.lua",
5+
lua = "nlua",
6+
},
7+
default = {
8+
verbose = true,
9+
},
10+
tests = {
11+
verbose = true,
12+
},
13+
}

.editorconfig

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
root = true
2+
3+
[*.lua]
4+
indent_style = space
5+
indent_size = 2
6+
continuation_indent = 2
7+
quote_style = double
8+
max_line_length = 120
9+
end_of_line = lf
10+
insert_final_newline = true
11+
charset = utf-8
12+
trim_trailing_whitespace = true
13+
call_parentheses = true
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: 'bug: [replace these brackets with the actual title]'
5+
labels: bug
6+
assignees: S1M0N38
7+
---
8+
9+
**Versions**
10+
11+
- *OS* \[e.g. macOS 15.1\]
12+
- *Neovim* \[e.g. 0.10.1\]
13+
- *Plugin* \[e.g. 0.1.1\]
14+
15+
16+
## Test with `minimal.lua`
17+
18+
>[!IMPORTANT]
19+
> Please do not skip this step. For most users, issues occur because of their Neovim configuration.
20+
21+
1. Create the file `repro.lua` with the following content
22+
23+
```lua
24+
vim.env.LAZY_STDPATH = ".repro"
25+
load(vim.fn.system("curl -s https://raw.githubusercontent.com/folke/lazy.nvim/main/bootstrap.lua"))()
26+
27+
local plugins = {
28+
{
29+
"S1M0N38/base.nvim",
30+
lazy = false,
31+
opts = {
32+
-- plugin options
33+
},
34+
},
35+
}
36+
37+
require("lazy.minit").repro({ spec = plugins })
38+
39+
-- Add additional setup here ...
40+
```
41+
42+
2. Run Neovim using `repro.lua` as config:
43+
44+
```
45+
nvim -u repro.lua
46+
```
47+
48+
3. Reproduce the bug
49+
50+
4. All the artifacts will be stored in the `.repro` directory, you can share them with us (e.g. logs, states, etc.)
51+
52+
## Describe the bug
53+
54+
A clear and concise description of what the bug is and the expected behavior.
55+
56+
57+
## Reproduce the bug
58+
59+
Write down the steps to reproduce the behavior:
60+
61+
1. Go to '...'
62+
1. Click on '....'
63+
1. Scroll down to '....'
64+
1. See error
65+
66+
You can also include screenshot (simply drag and drop image or video in this text area)

.github/workflows/.luarc.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"$schema": "https://raw.githubusercontent.com/sumneko/vscode-lua/master/setting/schema.json",
3+
"Lua.runtime.version": "LuaJIT",
4+
"Lua.workspace.library": [
5+
"/home/runner/work/base.nvim/base.nvim/deps/neodev.nvim/types/stable",
6+
"${3rd}/luassert/library",
7+
"${3rd}/busted/library"
8+
],
9+
"Lua.diagnostics.libraryFiles": "Disable",
10+
"Lua.diagnostics.neededFileStatus": "Any"
11+
}
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# googleapis/release-please-action
2+
# Automated releases based on conventional commits
3+
# https://github.com/googleapis/release-please-action
4+
5+
# NOTE: you need to create a PAT (Personal Access Token) in order to publish your plugin on GitHub
6+
# Follow https://github.com/nvim-neorocks/sample-luarocks-plugin
7+
8+
name: Release GitHub
9+
10+
on:
11+
push:
12+
branches:
13+
- main
14+
workflow_dispatch:
15+
16+
permissions:
17+
contents: write
18+
pull-requests: write
19+
20+
jobs:
21+
release:
22+
name: release
23+
runs-on: ubuntu-latest
24+
steps:
25+
- uses: googleapis/release-please-action@v4
26+
with:
27+
token: ${{ secrets.PAT }}
28+
release-type: simple
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# nvim-neorocks/luarocks-tag-release
2+
# GitHub workflow for automatically generating Luarocks releases from tags and running busted tests
3+
# It use .github/workflow/.luarc.json as config file
4+
# https://github.com/nvim-neorocks/luarocks-tag-release
5+
6+
7+
# NOTE: you need to create a LUAROCKS_API_KEY in order to publish your plugin on LuaRocks
8+
# Follow https://github.com/nvim-neorocks/sample-luarocks-plugin
9+
10+
name: Release LuaRocks
11+
12+
on:
13+
push:
14+
tags:
15+
- 'v*.*.*'
16+
workflow_dispatch:
17+
18+
jobs:
19+
luarocks-release:
20+
runs-on: ubuntu-latest
21+
name: Luarocks Release
22+
steps:
23+
- name: Checkout
24+
uses: actions/checkout@v3
25+
if: env.LUAROCKS_API_KEY != null
26+
- name: Luarocks Upload
27+
uses: nvim-neorocks/luarocks-tag-release@v7
28+
if: env.LUAROCKS_API_KEY != null
29+
env:
30+
LUAROCKS_API_KEY: ${{ secrets.LUAROCKS_API_KEY }}
31+
with:
32+
detailed_description: |
33+
A template for Neovim plugin
34+
copy_directories: |
35+
{{ neovim.plugin.dirs }}

.github/workflows/run-tests.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# nvim-neorocks/nvim-busted-action
2+
# A composite GitHub action for running busted tests with Neovim
3+
# https://github.com/nvim-neorocks/nvim-busted-action
4+
5+
name: Run tests
6+
7+
on:
8+
pull_request: ~
9+
push:
10+
branches:
11+
- main
12+
workflow_dispatch:
13+
14+
jobs:
15+
build:
16+
name: Run tests
17+
runs-on: ubuntu-latest
18+
strategy:
19+
matrix:
20+
neovim_version: ['stable']
21+
22+
steps:
23+
- uses: actions/checkout@v3
24+
- name: Run tests
25+
uses: nvim-neorocks/nvim-busted-action@v1
26+
# env:
27+
# If env vars are use in tests, define them here and on GitHub in repo settings
28+
# EXAMPLE_ENV_VAR: ${{ secrets.EXAMPLE_ENV_VAR }}
29+
with:
30+
nvim_version: ${{ matrix.neovim_version }}
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# lua-typecheck-action by mrcjkb
2+
# A GitHub action that lets you leverage sumneko lua-language-server and EmmyLua to statically type check lua code.
3+
# https://github.com/mrcjkb/lua-typecheck-action
4+
5+
name: Run typecheck
6+
7+
on:
8+
pull_request: ~
9+
push:
10+
branches:
11+
- '*'
12+
workflow_dispatch:
13+
14+
jobs:
15+
build:
16+
name: Type Check Code Base
17+
runs-on: ubuntu-latest
18+
19+
steps:
20+
- name: Checkout Code
21+
uses: actions/checkout@v3
22+
23+
# Neovim types, maybe there is a better way
24+
- name: Checkout dependency neodev
25+
uses: actions/checkout@v3
26+
with:
27+
repository: "folke/neodev.nvim"
28+
path: "deps/neodev.nvim"
29+
30+
- name: Type Check Code Base
31+
uses: mrcjkb/lua-typecheck-action@v0
32+
with:
33+
checklevel: Warning
34+
configpath: .github/workflows/.luarc.json
35+
directories: |
36+
lua
37+
spec

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
repro/.repro

CHANGELOG.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Changelog
2+
3+
## [1.0.2](https://github.com/S1M0N38/base.nvim/compare/v1.0.1...v1.0.2) (2024-09-15)
4+
5+
6+
### Bug Fixes
7+
8+
* **docs:** update badge URLs in README.md ([bf58d17](https://github.com/S1M0N38/base.nvim/commit/bf58d173338f66c9d144092edc16a60ceb753e1c))
9+
10+
## [1.0.1](https://github.com/S1M0N38/base.nvim/compare/v1.0.0...v1.0.1) (2024-09-15)
11+
12+
13+
### Bug Fixes
14+
15+
* change user variable to local scope in rockspec ([114f882](https://github.com/S1M0N38/base.nvim/commit/114f88220d55f2f67beb46485cde25cd97a2e4e4))
16+
* comment out unused environment variables in run-tests.yml ([619ba9e](https://github.com/S1M0N38/base.nvim/commit/619ba9ea63ff3b1e2ec55b834f5f56e8ebb06a6a))
17+
18+
## [1.0.0](https://github.com/S1M0N38/base.nvim/compare/v0.1.1...v1.0.0) (2024-09-15)
19+
20+
21+
### ⚠ BREAKING CHANGES
22+
23+
* add base command and remove my_awesome_plugin command
24+
* add GitHub Actions workflow for running tests with nvim-busted-action
25+
* migrate plugin to new base structure
26+
27+
### Features
28+
29+
* add .editorconfig for Lua files ([a9efd26](https://github.com/S1M0N38/base.nvim/commit/a9efd260f68dd16903c37bcfb7f237ee871d9e69))
30+
* add base command and remove my_awesome_plugin command ([59e9a98](https://github.com/S1M0N38/base.nvim/commit/59e9a987c0a4423eebb4e95f635a3a4b18145ce2))
31+
* add GitHub Actions workflow for running tests with nvim-busted-action ([0aba00a](https://github.com/S1M0N38/base.nvim/commit/0aba00aa451434404c4db1f048a2c79f30a91722))
32+
* add initial rockspec for base.nvim ([f42bd1d](https://github.com/S1M0N38/base.nvim/commit/f42bd1de1359ca428444c31b1d3aced2d66e59fa))
33+
* add reproducible environment for plugin issues ([c4f642f](https://github.com/S1M0N38/base.nvim/commit/c4f642f64df4078b9514961b49802f4af28afb2f))
34+
* migrate plugin to new base structure ([94a18f9](https://github.com/S1M0N38/base.nvim/commit/94a18f9095cbe93c0cc42ef5ddf148b27707d01d))
35+
* **workflows:** add separate GitHub and LuaRocks release workflows ([769011e](https://github.com/S1M0N38/base.nvim/commit/769011e9722e7b0e507d3bc49be6941f778b07d9))

0 commit comments

Comments
 (0)