Skip to content

Commit fc29c58

Browse files
authored
feat!: version 2.x.x ftplugin rewrite (#226)
###### 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)
2 parents 7f87f2e + de9ed84 commit fc29c58

Some content is hidden

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

55 files changed

+2353
-2320
lines changed

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,18 +24,16 @@ body:
2424
- type: input
2525
attributes:
2626
label: "Output of `haskell-language-server-wrapper --version`"
27-
placeholder: "1.9.0.0 (GHC: 9.2.4)"
27+
placeholder: "2.1.0.0 (GHC: 9.2.8)"
2828
- type: textarea
2929
attributes:
3030
label: "How to reproduce the issue"
3131
description: |
32-
Steps to reproduce using a [minimal config](https://github.com/MrcJkb/haskell-tools.nvim/blob/master/tests/minimal.lua).
32+
Steps to reproduce using a [minimal config](https://github.com/mrcjkb/haskell-tools.nvim/blob/master/troubleshooting/minimal.lua).
3333
placeholder: |
3434
mkdir -p /tmp/minimal
35-
NVIM_DATA_MINIMAL=/tmp/minimal -u minimal.lua
36-
:q
37-
NVIM_DATA_MINIMAL=/tmp/minimal -u minimal.lua
38-
:edit foo.hs
35+
NVIM_DATA_MINIMAL=/tmp/minimal NVIM_APP_NAME="ht-nvim-minimal" -u minimal.lua
36+
:edit Foo.hs
3937
4j
4038
:lua require('haskell-tools').hoogle_signature()
4139
validations:

.luarc.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"workspace.checkThirdParty": false
3+
}

.neoconf.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
"enabled": true,
55
"plugins": [
66
"telescope.nvim",
7-
"plenary.nvim"
7+
"plenary.nvim",
8+
"toggleterm.nvim",
9+
"nvim-dap"
810
]
911
}
1012
},

CHANGELOG.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,29 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [2.0.0] - 2023-08-27
9+
### Changed
10+
- New, more stable architecture.
11+
- BREAKING: Remove `setup` API.
12+
- BREAKING: Remove `start_or_attach` API.
13+
`vim.g.haskell_tools` can be used for configuration instead.
14+
- BREAKING: `haskell-tools` now
15+
automatically initialises and attaches when opening a Haskell or Cabal file.
16+
You can fine-tune this behaviour in the config.
17+
- BREAKING: Removed `haskell-tools.dap.nvim_dap` (copy of the `dap` module).
18+
- BREAKING configuration changes:
19+
- `hover.disable` has been changed to `hover.enable` for consistency.
20+
- `hls_log` (undocumented) has been moved to `hls.logfile`.
21+
- Repl: Add `--ghc-option -Wwarn` to `cabal repl` command.
22+
23+
### Added
24+
- Only attach cabal LSP clients if using `haskell-language-server > 1.9.0.0`.
25+
- By default, fall back to `haskell-language-server` if `haskell-language-server-wrapper`
26+
is not found [#233](https://github.com/mrcjkb/haskell-tools.nvim/issues/233).
27+
28+
### Fixed
29+
- LSP client: Don't fail if `hls.on_attach` fails.
30+
831
## [1.11.3] - 2023-08-06
932
### Fixed
1033
- Fix bug that broke codelens auto-refresh and lsp stop/restart [#229](https://github.com/mrcjkb/haskell-tools.nvim/issues/229).

0 commit comments

Comments
 (0)