Skip to content

Commit 6915225

Browse files
authored
feat: support luarocks/rocks.nvim (#78)
1 parent 2542276 commit 6915225

File tree

2 files changed

+48
-0
lines changed

2 files changed

+48
-0
lines changed

.github/workflows/luarocks.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Luarocks
2+
3+
on:
4+
push:
5+
tags:
6+
- '*'
7+
release:
8+
types:
9+
- created
10+
pull_request: # Tests packaging on PR
11+
workflow_dispatch:
12+
13+
jobs:
14+
luarocks-upload:
15+
runs-on: ubuntu-22.04
16+
steps:
17+
- uses: actions/checkout@v4
18+
with:
19+
fetch-depth: 0 # Required to get the tags
20+
- name: Get Version
21+
run: echo "LUAROCKS_VERSION=$(git describe --abbrev=0 --tags)" >> $GITHUB_ENV
22+
23+
- name: Install C/C++ Compiler
24+
uses: rlalik/setup-cpp-compiler@master
25+
with:
26+
compiler: clang-latest
27+
28+
- name: Install tree-sitter CLI
29+
uses: baptiste0928/cargo-install@v3
30+
with:
31+
crate: tree-sitter-cli
32+
33+
- name: LuaRocks Upload
34+
uses: nvim-neorocks/luarocks-tag-release@v7
35+
env:
36+
LUAROCKS_API_KEY: ${{ secrets.LUAROCKS_API_KEY }}
37+
with:
38+
version: ${{ env.LUAROCKS_VERSION }}
39+
dependencies: |
40+
tree-sitter-markdown
41+
tree-sitter-latex
42+
nvim-web-devicons

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,12 @@ Plugin to improve viewing Markdown files in Neovim
7373
}
7474
```
7575

76+
## rocks.nvim
77+
78+
```vimscript
79+
:Rocks install markdown.nvim
80+
```
81+
7682
## packer.nvim
7783

7884
```lua

0 commit comments

Comments
 (0)