Skip to content

Commit

Permalink
fix(health): broken tree-sitter parser check
Browse files Browse the repository at this point in the history
  • Loading branch information
mrcjkb committed Nov 5, 2023
1 parent 328e8e4 commit 23b3dc3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ 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).

## [1.0.2] - 2023-11-05
### Fixed
- Health check: Fix broken tree-sitter parser check.

## [1.0.1] - 2023-10-29
### Changed
- Remove `plenary.nvim` dependency.
Expand Down
4 changes: 2 additions & 2 deletions lua/neotest-haskell/health.lua
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,8 @@ function health.check()
end

start('Checking tree-sitter parsers')
local ok = pcall(vim.treesitter.get_string_parser, '', 'haskell')
if not ok then
local success = pcall(vim.treesitter.get_string_parser, '', 'haskell')
if not success then
error('The tree-sitter parser for Haskell is not installed.')
else
ok('The tree-sitter parser for Haskell is installed.')
Expand Down

0 comments on commit 23b3dc3

Please sign in to comment.