Skip to content

Commit 23b3dc3

Browse files
committed
fix(health): broken tree-sitter parser check
1 parent 328e8e4 commit 23b3dc3

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ 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+
## [1.0.2] - 2023-11-05
9+
### Fixed
10+
- Health check: Fix broken tree-sitter parser check.
11+
812
## [1.0.1] - 2023-10-29
913
### Changed
1014
- Remove `plenary.nvim` dependency.

lua/neotest-haskell/health.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,8 @@ function health.check()
138138
end
139139

140140
start('Checking tree-sitter parsers')
141-
local ok = pcall(vim.treesitter.get_string_parser, '', 'haskell')
142-
if not ok then
141+
local success = pcall(vim.treesitter.get_string_parser, '', 'haskell')
142+
if not success then
143143
error('The tree-sitter parser for Haskell is not installed.')
144144
else
145145
ok('The tree-sitter parser for Haskell is installed.')

0 commit comments

Comments
 (0)