Skip to content

1.9.5

Compare
Choose a tag to compare
@github-actions github-actions released this 06 Apr 20:20
· 348 commits to master since this release

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog,
and this project adheres to Semantic Versioning.

[Unreleased]

[1.9.5] - 2023-04-06

Fixed

  • Prevent infinite recursion on strange operating systems in path iteration (#171).

[1.9.4] - 2023-04-02

Fixed

  • Repl: Detection of single-package cabal projects.
  • Hoogle (web): URL escaping.

Changed

  • Remove rockspec (not needed, due to luarocks-tag-release-workflow).
  • HsProjectFile: Try stack.yml first, then fall back to cabal.project and then to *.cabal.

[1.9.3] - 2023-03-08

Fixed

  • Silent failure and unexpected error message if haskell-language-server executable is not found (#154).

[1.9.2] - 2023-03-06

Fixed

  • Initialisation of client capabilities when nvim-cmp is not installed.

[1.9.1] - 2023-02-20

Fixed

  • Typo in the logfile name.

[1.9.0] - 2023-02-17

Added

  • LSP: Evaluate all code snippets in comments at once.
  • Support setup in ftplugin/haskell.lua.

Fixed

  • Check if attached LSP client supports codeLens before refreshing.
  • Telescope extension can now be registered before haskell-tools has been setup.

[1.8.0] - 2023-02-03

Changed

  • Set up LSP client without nvim-lspconfig (removes the dependency).
  • 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 LuaRocks-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.
  • Validate configs during setup.
  • Hover action for textDocument/typeDefinition.

[1.7.0] - 2023-01-27

Fixed

  • Fall back to hoogle browser search if telescope is not set up.

Changed

  • Do not set a default layout for telescope Hoogle search.

[1.6.0] - 2023-01-21

Added

  • Ability to temporarily set the log level via ht.log.set_level(level).
  • tools.repl.auto_focus option.
  • Vimdocs

Fixed

  • repl.toggleterm: Do not close on failure.
  • repl: Quote file names.

[1.5.1] - 2023-01-08

Fixed

  • Set default log level to vim.log.levels.WARN.

[1.5.0] - 2023-01-08

Added

  • Support for hls-cabal-plugin and hls-cabal-fmt plugins.
  • Add logging

Fixed

  • Packer init in minimal config for reproducing issues locally.

[1.4.4] - 2022-12-20

Fixed

  • Pass the custom options to hoogle telescope, so that users' custom telescope
    themes, etc. can be supported.

[1.4.3] - 2022-12-06

Fixed

  • Error message shown if hoogle is installed, but telescope is missing

[1.4.2] - 2022-11-19

Fixed

  • Bug causing hls to always use default settings
  • Prevent concatenatenation with nil on tags generation if package root can't be found

[1.4.1] - 2022-11-19

Fixed

  • Project tags not being generated on session start

[1.4.0] - 2022-11-18

Added

  • Automatically generate project & package tags if fast-tags is installed.
  • Configuration for falling back to hoogle search if vim.lsp.definition fails.
  • Nix flake setup.

Fixed

  • Hover actions improvements:
    • Always show 'Go to definition' if location is found.
    • Offer Hoogle search for package <> name if location is not found.
  • Hoogle search: Replace multiple whitespace with single space.
  • CodeLens: Only auto-refresh on buffer the LSP client has attached to.

[1.3.0] - 2022-11-14

Added

  • Hover actions
  • Command for loading files into the repl.
  • Ability to paste multiple valid Haskell lines into the repl.
  • repl.paste_info and repl.cword_info functions.
  • Telescope live_grep and find_files commands for current package
  • Register Telescope extension

Fixed

  • Fix broken <C-b> keymap to open Hoogle entry in the browser

[1.2.0] - 2022-11-09

Added

  • GHCi repl integration: Automagically detect the command to start GHCi and load the current buffer.
  • Interact with the GHCi repl from any buffer using lua functions.
  • :HsProjectFile, :HsPackageYaml and :HsPackageCabal commands to open project/package files for the current buffer.

Changed

  • Do not close Hoogle Telescope prompt on <C-b> (open hackage docs in browser).

Fixed

  • Auto-refresh code lenses only for Haskell files

[1.1.0] - 2022-10-29

Added

  • Keymap to replace word under cursor when hoogling type signature

Fixed

  • Fix broken telescope hoogle_attach_mappings call, causing error message on entry selection

[1.0.0] - 2022-10-25

Added

  • Hoogle search (BREAKING CHANGE: Depends on plenary.nvim)
  • Hoogle search for signature under cursor (telescope-local, telescope-web or browser)
  • Automatic registration of selection range capabilities if nvim-lsp-selection-range is loaded.

[0.2.0] - 2022-10-18

Added

  • Basic automatic codeLens refresh (can be disabled by setting tools.codeLens.autoRefresh = false).

Fixed

  • Clean exit of language server on quit.

[0.1.0] - 2022-10-15

Added

  • Basic haskell-language-server client support on par with nvim-lspconfig.hls.
  • Clean shutdown on exit to prevent file corruption (see ghc #14533).