Skip to content

Commit

Permalink
feat: add rockspec (#115)
Browse files Browse the repository at this point in the history
Created a new PR because #83 got closed and cannot be reopened. For some
reason GitHub thinks it has over 250 commits.

###### Things done

- [x] Tested, as applicable:
  - [x] Manually
  - [ ] Added plenary specs
- [x] Updated
[CHANGELOG.md](https://github.com/MrcJkb/haskell-tools.nvim/blob/master/CHANGELOG.md)
(if applicable).
- [x] Fits
[CONTRIBUTING.md](https://github.com/MrcJkb/haskell-tools.nvim/blob/master/CONTRIBUTING.md)
  • Loading branch information
mrcjkb authored Feb 3, 2023
1 parent 2e63d63 commit 8e745f5
Show file tree
Hide file tree
Showing 4 changed files with 61 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: "Release"
on:
push:
tags:
- "*"

jobs:
luarocks-release:
runs-on: ubuntu-latest
name: LuaRocks upload
steps:
- name: Checkout
uses: actions/checkout@v3
- name: LuaRocks Upload
uses: nvim-neorocks/[email protected]
env:
LUAROCKS_API_KEY: ${{ secrets.LUAROCKS_API_KEY }}
with:
dependencies: |
plenary.nvim
copy_directories: |
doc
detailed_description: |
This plugin automatically configures the haskell-language-server builtin LSP client
and integrates with other Haskell tools. See the README's #features section
for more info.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Hover actions: Shorten locations relative to file, package or project.
- Only show definition/typeDefinition hover actions if they are in different locations.
### Added
- Rockspec for automatic dependency management by LoaRocks-compatible plugin managers.
- LuaRocks tag release worflow.
- `HlsStart`, `HlsStop` and `HlsRestart` commands.
- Dynamically load `haskell-language-server` settings JSON from project root, if available.
- Health checks, runnable with `:checkhealth haskell-tools`.
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
![Nix](https://img.shields.io/badge/nix-0175C2?style=for-the-badge&logo=NixOS&logoColor=white)

[![Nix build](https://github.com/MrcJkb/haskell-tools.nvim/actions/workflows/nix-build.yml/badge.svg)](https://github.com/MrcJkb/haskell-tools.nvim/actions/workflows/nix-build.yml)
![LuaRocks](https://img.shields.io/luarocks/v/MrcJkb/haskell-tools.nvim?logo=lua&color=purple)
<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
[![All Contributors](https://img.shields.io/badge/all_contributors-3-grey.svg?style=flat-square)](#contributors-)
<!-- ALL-CONTRIBUTORS-BADGE:END -->
Expand Down
31 changes: 31 additions & 0 deletions haskell-tools.nvim-scm-1.rockspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
local MODREV, SPECREV = 'scm', '-1'
rockspec_format = '3.0'
package = 'haskell-tools.nvim'
version = MODREV .. SPECREV

description = {
summary = 'Supercharge your Haskell experience in neovim!',
detailed = [[
Automatically configures the haskell-language-server neovim client
and integrates with other haskell tools, such as hoogle and fast-tags.
]],
labels = { 'neovim', 'lsp', 'haskell', 'plugin' },
homepage = 'https://github.com/MrcJkb/haskell-tools.nvim',
license = 'GPL-2.0',
}

dependencies = {
'lua >= 5.1',
'plenary.nvim',
}

source = {
url = 'git://github.com/MrcJkb/haskell-tools.nvim',
}

build = {
type = 'builtin',
copy_directories = {
'doc',
},
}

0 comments on commit 8e745f5

Please sign in to comment.