From 59df499a5730504d1cad22073d9cd4a06ca03e0f Mon Sep 17 00:00:00 2001 From: Marc Jakobi Date: Mon, 11 Sep 2023 01:56:40 +0200 Subject: [PATCH] fix(haskell): remove now redundant `discover_configurations` call (#570) fix(haskell): remove now redundant discover_configurations call - Since version 2.1.0, haskell-tools.nvim calls this automatically if both `nvim-dap` and `haskell-debug-adapter` are installed. --- lua/astrocommunity/pack/haskell/init.lua | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lua/astrocommunity/pack/haskell/init.lua b/lua/astrocommunity/pack/haskell/init.lua index fd79dc4e9..dd70322d4 100644 --- a/lua/astrocommunity/pack/haskell/init.lua +++ b/lua/astrocommunity/pack/haskell/init.lua @@ -21,10 +21,7 @@ return { astronvim.lsp.skip_setup = utils.list_insert_unique(astronvim.lsp.skip_setup, "hls") vim.g.haskell_tools = { hls = { - on_attach = function(client, bufnr, ht) - require("astronvim.utils.lsp").on_attach(client, bufnr) - ht.dap.discover_configurations(bufnr) - end, + on_attach = function(client, bufnr, _) require("astronvim.utils.lsp").on_attach(client, bufnr) end, }, } end,