Skip to content

Commit 7387f8a

Browse files
authored
Merge branch 'main' into indent-level
2 parents 5e1ff45 + 1655119 commit 7387f8a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+1756
-1103
lines changed

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 23 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ body:
66
- type: markdown
77
attributes:
88
value: |
9-
**Before** reporting an issue, make sure to read [`:h neo-tree.txt`](https://github.com/nvim-neo-tree/neo-tree.nvim/blob/v2.x/doc/neo-tree.txt) and search [existing issues](https://github.com/nvim-neo-tree/neo-tree.nvim/issues). Usage questions such as ***"How do I...?"*** belong in [Discussions](https://github.com/nvim-neo-tree/neo-tree.nvim/discussions) and will be closed.
9+
**Before** reporting an issue, make sure to read [`:h neo-tree.txt`](https://github.com/nvim-neo-tree/neo-tree.nvim/blob/v3.x/doc/neo-tree.txt) and search [existing issues](https://github.com/nvim-neo-tree/neo-tree.nvim/issues). Usage questions such as ***"How do I...?"*** belong in [Discussions](https://github.com/nvim-neo-tree/neo-tree.nvim/discussions) and will be closed.
1010
- type: checkboxes
1111
attributes:
1212
label: Did you check docs and existing issues?
@@ -21,7 +21,7 @@ body:
2121
- type: input
2222
attributes:
2323
label: "Neovim Version (nvim -v)"
24-
placeholder: "0.8.0 commit db1b0ee3b30f"
24+
placeholder: "NVIM v0.10.3"
2525
validations:
2626
required: true
2727
- type: input
@@ -63,47 +63,30 @@ body:
6363
label: Your Configuration
6464
description: Minimal `init.lua` to reproduce this issue. Save as `repro.lua` and run with `nvim -u repro.lua`
6565
value: |
66-
-- DO NOT change the paths and don't remove the colorscheme
67-
local root = vim.fn.fnamemodify("./.repro", ":p")
66+
-- template from https://lazy.folke.io/developers#reprolua, feel free to replace if you have your own minimal init.lua
67+
vim.env.LAZY_STDPATH = ".repro"
68+
load(vim.fn.system("curl -s https://raw.githubusercontent.com/folke/lazy.nvim/main/bootstrap.lua"))()
6869
69-
-- set stdpaths to use .repro
70-
for _, name in ipairs({ "config", "data", "state", "cache" }) do
71-
vim.env[("XDG_%s_HOME"):format(name:upper())] = root .. "/" .. name
72-
end
73-
74-
-- bootstrap lazy
75-
local lazypath = root .. "/plugins/lazy.nvim"
76-
if not vim.loop.fs_stat(lazypath) then
77-
vim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", lazypath, })
78-
end
79-
vim.opt.runtimepath:prepend(lazypath)
80-
81-
-- install plugins
82-
local plugins = {
83-
"folke/tokyonight.nvim",
84-
-- add any other plugins here
85-
}
86-
87-
local neotree_config = {
88-
"nvim-neo-tree/neo-tree.nvim",
89-
dependencies = { "MunifTanjim/nui.nvim", "nvim-tree/nvim-web-devicons", "nvim-lua/plenary.nvim" },
90-
cmd = { "Neotree" },
91-
keys = {
92-
{ "<Leader>e", "<Cmd>Neotree<CR>" }, -- change or remove this line if relevant.
70+
require("lazy.minit").repro({
71+
spec = {
72+
{
73+
"nvim-neo-tree/neo-tree.nvim",
74+
branch = "v3.x", -- or "main"
75+
dependencies = {
76+
"nvim-lua/plenary.nvim",
77+
"nvim-tree/nvim-web-devicons", -- not strictly required, but recommended
78+
"MunifTanjim/nui.nvim",
79+
-- { "3rd/image.nvim", opts = {} }, -- Optional image support
80+
},
81+
opts = {
82+
-- fill any relevant options here
83+
},
84+
}
9385
},
94-
opts = {
95-
-- Your config here
96-
-- ...
97-
},
98-
}
99-
100-
table.insert(plugins, neotree_config)
101-
require("lazy").setup(plugins, {
102-
root = root .. "/plugins",
10386
})
104-
105-
vim.cmd.colorscheme("tokyonight")
106-
-- add anything else here
87+
vim.g.mapleader = " "
88+
vim.keymap.set("n", "<leader>e", "<Cmd>Neotree<CR>")
89+
-- do anything else you need to do to reproduce the issue
10790
render: Lua
10891
validations:
10992
required: true

.github/workflows/ci.yml

Lines changed: 22 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -12,33 +12,42 @@ jobs:
1212
stylua-check:
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions/checkout@v1
15+
- uses: actions/checkout@v4
1616

1717
- name: Check formatting
18-
uses: JohnnyMorganz/stylua-action@v2
18+
uses: JohnnyMorganz/stylua-action@v4
1919
with:
2020
token: ${{ secrets.GITHUB_TOKEN }}
21-
version: v0.16.0
22-
args: --color always --check -g '!**/defaults.lua' lua/
21+
version: latest
22+
args: --color always --check lua/
2323

2424
plenary-tests:
25-
runs-on: ubuntu-20.04
25+
runs-on: ${{ matrix.os }}
26+
strategy:
27+
fail-fast: false
28+
matrix:
29+
include:
30+
- os: ubuntu-22.04
31+
rev: nightly/nvim-linux-x86_64.tar.gz
32+
- os: ubuntu-22.04
33+
rev: v0.8.3/nvim-linux64.tar.gz
34+
- os: ubuntu-22.04
35+
rev: v0.9.5/nvim-linux64.tar.gz
36+
- os: ubuntu-22.04
37+
rev: v0.10.4/nvim-linux-x86_64.tar.gz
2638
steps:
27-
- uses: actions/checkout@v2
39+
- uses: actions/checkout@v4
2840
- run: date +%F > todays-date
2941
- name: Restore cache for today's nightly.
30-
uses: actions/cache@v2
42+
uses: actions/cache@v4
3143
with:
3244
path: build
33-
key: ${{ runner.os }}-appimage-${{ hashFiles('todays-date') }}
34-
45+
key: ${{ runner.os }}-${{ matrix.rev }}-${{ hashFiles('todays-date') }}
3546
- name: Prepare
3647
run: |
3748
test -d build || {
3849
mkdir -p build
39-
wget https://github.com/neovim/neovim/releases/download/nightly/nvim.appimage
40-
chmod +x nvim.appimage
41-
mv nvim.appimage ./build/nvim
50+
curl -sL "https://github.com/neovim/neovim/releases/download/${{ matrix.rev }}" | tar xzf - --strip-components=1 -C "${PWD}/build"
4251
}
4352
4453
# - name: Get Luver Cache Key
@@ -66,7 +75,7 @@ jobs:
6675

6776
- name: Run tests
6877
run: |
69-
export PATH="${PWD}/build/:${PATH}"
78+
export PATH="${PWD}/build/bin:${PATH}"
7079
./scripts/test.sh
7180
7281
# - name: Upload coverage to Codecov

.github/workflows/protect_release_branches.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
run: |
2222
target=${{ github.base_ref }}
2323
echo "Target is: $target"
24-
if [[ $target == "v2.x" ]]; then
24+
if [[ $target != "main" ]]; then
2525
echo "PRs must target main"
2626
exit 1
2727
else

.stylua.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ line_endings = "Unix"
33
indent_type = "Spaces"
44
indent_width = 2
55
quote_style = "AutoPreferDouble"
6+
syntax = "LuaJIT"

0 commit comments

Comments
 (0)