diff --git a/CHANGELOG.md b/CHANGELOG.md index ea3c1b2..2411ee7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,14 @@ 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). +## [3.1.8] - 2024-02-23 + +### Reverted + +- Don't run `ftplugin` more than once on the same buffer. + This prevented the LSP client from reattaching when + running `:e`. + ## [3.1.7] - 2024-02-20 ### Fixed diff --git a/lua/haskell-tools/internal.lua b/lua/haskell-tools/internal.lua index 65cae6b..51ac7d1 100644 --- a/lua/haskell-tools/internal.lua +++ b/lua/haskell-tools/internal.lua @@ -72,13 +72,8 @@ end ---ftplugin implementation function InternalApi.ftplugin() - local bufnr = vim.api.nvim_get_current_buf() - if vim.b[bufnr].did_haskell_tools_ftplugin then - return - end start_or_attach() dap_discover() - vim.b[bufnr].did_haskell_tools_ftplugin = true end return InternalApi