Skip to content

Commit

Permalink
feat!: version 2.x.x ftplugin rewrite (#226)
Browse files Browse the repository at this point in the history
###### Description of changes
This is a major (breaking) rewrite of haskell-tools.nvim.

See also: #227.

###### Things done

- [x] Tested, as applicable:
  - [x] Manually
  - [x] 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 Aug 26, 2023
2 parents 7f87f2e + de9ed84 commit fc29c58
Show file tree
Hide file tree
Showing 55 changed files with 2,353 additions and 2,320 deletions.
10 changes: 4 additions & 6 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,16 @@ body:
- type: input
attributes:
label: "Output of `haskell-language-server-wrapper --version`"
placeholder: "1.9.0.0 (GHC: 9.2.4)"
placeholder: "2.1.0.0 (GHC: 9.2.8)"
- type: textarea
attributes:
label: "How to reproduce the issue"
description: |
Steps to reproduce using a [minimal config](https://github.com/MrcJkb/haskell-tools.nvim/blob/master/tests/minimal.lua).
Steps to reproduce using a [minimal config](https://github.com/mrcjkb/haskell-tools.nvim/blob/master/troubleshooting/minimal.lua).
placeholder: |
mkdir -p /tmp/minimal
NVIM_DATA_MINIMAL=/tmp/minimal -u minimal.lua
:q
NVIM_DATA_MINIMAL=/tmp/minimal -u minimal.lua
:edit foo.hs
NVIM_DATA_MINIMAL=/tmp/minimal NVIM_APP_NAME="ht-nvim-minimal" -u minimal.lua
:edit Foo.hs
4j
:lua require('haskell-tools').hoogle_signature()
validations:
Expand Down
3 changes: 3 additions & 0 deletions .luarc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"workspace.checkThirdParty": false
}
4 changes: 3 additions & 1 deletion .neoconf.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
"enabled": true,
"plugins": [
"telescope.nvim",
"plenary.nvim"
"plenary.nvim",
"toggleterm.nvim",
"nvim-dap"
]
}
},
Expand Down
23 changes: 23 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,29 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [2.0.0] - 2023-08-27
### Changed
- New, more stable architecture.
- BREAKING: Remove `setup` API.
- BREAKING: Remove `start_or_attach` API.
`vim.g.haskell_tools` can be used for configuration instead.
- BREAKING: `haskell-tools` now
automatically initialises and attaches when opening a Haskell or Cabal file.
You can fine-tune this behaviour in the config.
- BREAKING: Removed `haskell-tools.dap.nvim_dap` (copy of the `dap` module).
- BREAKING configuration changes:
- `hover.disable` has been changed to `hover.enable` for consistency.
- `hls_log` (undocumented) has been moved to `hls.logfile`.
- Repl: Add `--ghc-option -Wwarn` to `cabal repl` command.

### Added
- Only attach cabal LSP clients if using `haskell-language-server > 1.9.0.0`.
- By default, fall back to `haskell-language-server` if `haskell-language-server-wrapper`
is not found [#233](https://github.com/mrcjkb/haskell-tools.nvim/issues/233).

### Fixed
- LSP client: Don't fail if `hls.on_attach` fails.

## [1.11.3] - 2023-08-06
### Fixed
- Fix bug that broke codelens auto-refresh and lsp stop/restart [#229](https://github.com/mrcjkb/haskell-tools.nvim/issues/229).
Expand Down
Loading

0 comments on commit fc29c58

Please sign in to comment.