-
-
Notifications
You must be signed in to change notification settings - Fork 20
Description
Neovim version (nvim -v)
v0.9.2
Operating system/version
Ventura 13.4.1
Output of :checkhealth haskell-tools
haskell-tools: require("haskell-tools.health").check() Checking for Lua dependencies ~ - OK nvim-lua/plenary.nvim installed. - OK nvim-telescope/telescope.nvim installed. Checking external dependencies ~ - OK haskell-language-server: found haskell-language-server version: 2.2.0.0 (GHC: 8.10.7) (PATH: /Users/shess/.ghcup/hls/2.2.0.0/lib/haskell-language-server-2.2.0.0/bin/haskell-language-server-wrapper) - OK hoogle: found Hoogle 5.0.18.3, https://hoogle.haskell.org/ - OK fast-tags: found fast-tags, version 2.0.2 - OK curl: found curl 7.88.1 (x86_64-apple-darwin22.0) libcurl/7.88.1 (SecureTransport) LibreSSL/3.3.6 zlib/1.2.11 nghttp2/1.51.0 - WARNING haskell-debug-adapter: not found. Install haskell-debug-adapter for extended capabilities. Optional, for dap
support. - WARNING ghci-dap: not found. Install ghci-dap for extended capabilities. Optional, for dap
support. Checking config ~ - OK No errors found in config. Checking for conflicting plugins ~ - OK No conflicting plugins detected.
How to reproduce the issue
Configuring haskell-tools to suddenly stopped working in any project. The formatters run on the command-line as expected. Neovim is loading settings as expected.
What other information can I hunt down to debug this? Thank you!
Expected behaviour
Files should format on save
Actual behaviour
The formatter doesn't run.
Log files
No response
The minimal config used to reproduce this issue.
Using lazyvim, add lua/plugins/haskell.lua
:
vim.g.haskell_tools = {
codeLens = {
-- Whether to automatically display/refresh codeLenses
-- (explicitly set to false to disable)
autoRefresh = true,
},
hoogle = {
mode = "telescope-local",
},
hls = { -- LSP client options
-- on_attach = function(client, bufnr, ht)
-- print("ATTACH", ht.default_settings.haskell)
-- end,
default_settings = {
haskell = { -- haskell-language-server options
formattingProvider = "fourmolu",
-- formattingProvider = "ormolu",
-- Setting this to true could have a performance impact on large mono repos.
-- checkProject = true,
plugin = {
hlint = {
codeActionsOn = true,
diagnosticsOn = true,
},
}, -- don't
},
},
},
}
return {
{ "luc-tielen/telescope_hoogle" },
{
"mrcjkb/haskell-tools.nvim",
dependencies = { "nvim-lua/plenary.nvim", "nvim-telescope/telescope.nvim", "luc-tielen/telescope_hoogle" },
branch = "2.x.x",
},
}