Skip to content

Commit 0f05dda

Browse files
Merge branch 'main' into release-please--branches--main--components--rest.nvim
2 parents b236bcf + f5227f9 commit 0f05dda

File tree

116 files changed

+5940
-4217
lines changed

Some content is hidden

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

116 files changed

+5940
-4217
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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ end_of_line = lf
88
insert_final_newline = true
99
trim_trailing_whitespace = true
1010

11-
[*.lua]
11+
[*.{scm,nix}]
1212
indent_size = 2
1313

1414
[*.{md,lua}]

.github/CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# Any change to files in the root directory, any later match takes precedence.
2-
* @NTBBloodbath
2+
* @NTBBloodbath @boltlessengineer

.github/workflows/docgen.yml

Lines changed: 0 additions & 38 deletions
This file was deleted.

.github/workflows/luarocks.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,18 @@ jobs:
1818
uses: actions/checkout@v4
1919
with:
2020
fetch-depth: 0 # Required to count the commits
21-
- name: Install build dependencies
22-
run: sudo apt-get install -y libcurl4-gnutls-dev
2321
- name: Luarocks Upload
24-
uses: mrcjkb/luarocks-tag-release@v5
22+
uses: nvim-neorocks/luarocks-tag-release@v7
23+
env:
24+
LUAROCKS_API_KEY: ${{ secrets.LUAROCKS_API_KEY }}
2525
with:
2626
dependencies: |
2727
nvim-nio
28-
lua-curl
2928
mimetypes
3029
xml2lua
31-
extra_luarocks_args: |
32-
CURL_INCDIR=/usr/include/x86_64-linux-gnu
33-
env:
34-
LUAROCKS_API_KEY: ${{ secrets.LUAROCKS_API_KEY }}
30+
fidget.nvim
31+
tree-sitter-http >= scm
32+
test_dependencies: |
33+
nlua
34+
copy_directories: |
35+
{{ neovim.plugin.dirs }}

.gitmodules

Whitespace-only changes.

.luacheckrc

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
1-
-- Use lua52 so we will no receive errors regarding to goto statements
2-
std = "lua52+busted"
1+
std = "luajit+busted"
32

43
-- Rerun tests only if their modification time changed
54
cache = true
65

76
ignore = {
87
"122", -- Setting a read-only field of a global variable
98
"631", -- Line is too long
9+
"21/_.*", -- Unused variable starting with underscore
1010
}
1111

1212
read_globals = {
1313
"vim",
1414
}
15-
16-
-- vim: ft=lua

.luarc.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"$schema": "https://raw.githubusercontent.com/LuaLS/vscode-lua/master/setting/schema.json",
3+
"runtime": {
4+
"version": "LuaJIT"
5+
},
6+
"workspace": {
7+
"checkThirdParty": "Disable"
8+
}
9+
}

Makefile

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.PHONY: lint format test docgen
1+
.PHONY: lint format test docgen doc
22
.SILENT: docgen
33

44
lint:
@@ -8,11 +8,6 @@ format:
88
stylua .
99

1010
test:
11-
nvim --headless --clean -n -u tests/test.lua "$(FILE)"
12-
13-
docgen:
14-
lemmy-help lua/rest-nvim/client/curl.lua > doc/rest-nvim-curl.txt
15-
lemmy-help lua/rest-nvim/commands.lua > doc/rest-nvim-commands.txt
16-
lemmy-help lua/rest-nvim/config/init.lua > doc/rest-nvim-config.txt
17-
lemmy-help lua/rest-nvim/parser/dynamic_vars.lua lua/rest-nvim/parser/env_vars.lua lua/rest-nvim/parser/script_vars.lua lua/rest-nvim/parser/init.lua > doc/rest-nvim-parser.txt
18-
lemmy-help lua/rest-nvim/api.lua lua/rest-nvim/utils.lua lua/rest-nvim/functions.lua lua/rest-nvim/logger.lua lua/rest-nvim/result/init.lua lua/rest-nvim/result/winbar.lua lua/rest-nvim/result/help.lua > doc/rest-nvim-api.txt
11+
LUA_PATH="$(shell luarocks path --lr-path --lua-version 5.1 --local)" \
12+
LUA_CPATH="$(shell luarocks path --lr-cpath --lua-version 5.1 --local)" \
13+
luarocks test --local --lua-version 5.1 --dev

0 commit comments

Comments
 (0)