Skip to content

Commit

Permalink
revert: don't run ftplugin more than once on the same buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
mrcjkb committed Feb 23, 2024
1 parent c0c37d6 commit 217cb79
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 0 additions & 5 deletions lua/haskell-tools/internal.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 217cb79

Please sign in to comment.