-
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit b77a8ca
Showing
45 changed files
with
2,665 additions
and
0 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# global rule | ||
* @max397574 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,105 @@ | ||
name: Bug Report | ||
description: Report a problem with neocomplete.nvim | ||
labels: [bug] | ||
body: | ||
- type: checkboxes | ||
id: faq-prerequisite | ||
attributes: | ||
label: Prerequisites | ||
options: | ||
- label: I am using the latest stable neovim version | ||
required: true | ||
- label: I am using the latest version of the plugin | ||
required: true | ||
- type: input | ||
attributes: | ||
label: "Neovim Version" | ||
description: "`nvim --version`:" | ||
validations: | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: "neocomplete.nvim setup" | ||
description: | | ||
- Copy your entire `require("neocomplete").setup` function | ||
validations: | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: "Actual behavior" | ||
description: "A description of actual behavior. May optionally include images or videos." | ||
validations: | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: "Expected behavior" | ||
description: "A description of the behavior you expected." | ||
validations: | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: "Healthcheck" | ||
description: "Output of `:checkhealth neocomplete`" | ||
render: markdown | ||
placeholder: | | ||
neocomplete: require("neocomplete.health").check() | ||
======================================================================== | ||
## neocomplete.nvim | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: "Steps to reproduce" | ||
description: "Please describe how we can reproduce the issue." | ||
placeholder: | | ||
1. `nvim -nu minimal.lua` | ||
2. ... | ||
validations: | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: "Other information" | ||
description: "Other information that could be helpful with debugging." | ||
- type: textarea | ||
attributes: | ||
label: "Minimal config" | ||
description: "Minimal config with which the issue is reproducible. Save this as `minimal_init.lua. Add plugins and configs which are necessary at indicated location." | ||
render: Lua | ||
value: | | ||
local root = vim.fn.fnamemodify("./.repro", ":p") | ||
-- set stdpaths to use .repro | ||
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) | ||
-- install plugins | ||
local plugins = { | ||
"folke/tokyonight.nvim", | ||
{ | ||
"max397574/neocomplete.nvim", | ||
}, | ||
} | ||
require("lazy").setup(plugins, { | ||
root = root .. "/plugins", | ||
}) | ||
-- add anything else here | ||
vim.opt.termguicolors = true | ||
vim.cmd([[colorscheme tokyonight]]) | ||
require"neocomplete".setup() | ||
validations: | ||
required: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
contact_links: | ||
- name: Ask a question | ||
url: https://github.com/max397574/neocomplete.nvim/discussions | ||
about: If you need help with configuration or something else |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Feature request | ||
description: Request a feature for neocomplete.nvim | ||
labels: [feature] | ||
body: | ||
- type: checkboxes | ||
id: issue-prerequisite | ||
attributes: | ||
label: Issues | ||
options: | ||
- label: I have checked [existing issues](https://github.com/max397574/neocomplete.nvim/issues) and there are no existing ones with the same request. | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: "Feature description" | ||
validations: | ||
required: true | ||
- type: dropdown | ||
id: help | ||
attributes: | ||
label: "Help" | ||
description: "Would you be able to implement this by submitting a pull request?" | ||
options: | ||
- "Yes" | ||
- "Yes, but I don't know how to start. I would need guidance" | ||
- "No" | ||
validations: | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: "Implementation help" | ||
description: "If you selected yes in the last question please specify in detail what you would need help with in order to implement this." | ||
validations: | ||
required: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
github: 'max397574' | ||
custom: ['https://buymeacoffee.com/max397574'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"$schema": "https://raw.githubusercontent.com/sumneko/vscode-lua/master/setting/schema.json", | ||
"runtime.version": "LuaJIT", | ||
"runtime.path": [ | ||
"lua/?.lua", | ||
"lua/?/init.lua" | ||
], | ||
"workspace.library": [ | ||
"/home/runner/work/neocomplete.nvim/neocomplete.nvim/deps/neovim/runtime/lua", | ||
"/home/runner/work/neocomplete.nvim/neocomplete.nvim/deps/luacats/luv/library" | ||
], | ||
"diagnostics.libraryFiles": "Disable", | ||
"workspace.checkThirdParty": "Disable" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
name: Release Please | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
release: | ||
name: Release | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: google-github-actions/release-please-action@v3 | ||
with: | ||
release-type: simple | ||
package-name: neocomplete.nvim |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: Formatting | ||
|
||
on: | ||
push: | ||
branches: [ "main" ] | ||
paths-ignore: | ||
- ".github/**" | ||
- "**.md" | ||
- "**.norg" | ||
|
||
jobs: | ||
format-with-stylua: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Cache cargo modules | ||
id: cache-cargo | ||
uses: actions/cache@v2 | ||
env: | ||
cache-name: cache-node-modules | ||
with: | ||
path: ~/.cargo | ||
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/Cargo.toml') }} | ||
restore-keys: | | ||
${{ runner.os }}-build-${{ env.cache-name }}- | ||
${{ runner.os }}-build- | ||
${{ runner.os }}- | ||
- name: Install cargo | ||
run: curl https://sh.rustup.rs -sSf | sh -s -- -y | ||
|
||
- name: Install stylua | ||
run: cargo install stylua --features lua52 | ||
|
||
- name: Run formatting | ||
run: stylua -v --verify . | ||
|
||
- uses: stefanzweifel/git-auto-commit-action@v4 | ||
with: | ||
commit_message: "chore: autoformat with stylua" | ||
branch: ${{ github.ref }} | ||
|
||
- name: Push changes | ||
uses: ad-m/github-push-action@master | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
branch: ${{ github.ref }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
name: Linter | ||
on: | ||
pull_request: ~ | ||
push: | ||
branches: | ||
- '*' | ||
jobs: | ||
luacheck: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: nebularg/actions-luacheck@v1 | ||
with: | ||
files: 'lua' | ||
args: --no-unused |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: lua-ls Typecheck | ||
on: | ||
pull_request: ~ | ||
push: | ||
branches: | ||
- '*' | ||
jobs: | ||
build: | ||
name: lua-ls Typecheck | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Code | ||
uses: actions/checkout@v3 | ||
- name: Get latest neovim release tag | ||
id: get_latest_neovim_tag | ||
run: | | ||
latest_tag=$(curl --silent "https://api.github.com/repos/neovim/neovim/tags" | jq -r '.[0].name') | ||
echo "Latest tag: $latest_tag" | ||
echo "::set-output name=latest_tag::$latest_tag" | ||
- name: Checkout neovim for type annotations | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: "neovim/neovim" | ||
path: "deps/neovim" | ||
ref: ${{ steps.get_latest_neovim_tag.outputs.latest_tag }} | ||
- name: Install luv luaCATS | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: "LuaCATS/luv" | ||
path: "deps/luacats/luv" | ||
- uses: leafo/gh-actions-lua@v9 # get luarocks dependencies for their types (eg `PathlibPath`) | ||
with: | ||
luaVersion: "5.1" | ||
- uses: leafo/gh-actions-luarocks@v4 | ||
- name: install dependencies | ||
run: | | ||
luarocks init | ||
luarocks install --only-deps ./*.rockspec | ||
- name: Type Check Code Base | ||
uses: mrcjkb/[email protected] | ||
with: | ||
configpath: .github/workflows/.luarc.json | ||
directories: | | ||
lua |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
todo.norg |
Oops, something went wrong.