Skip to content

Commit 5fb048d

Browse files
author
Marc Jakobi
committed
revert: don't run ftplugin/rust.lua more than once per buffer
1 parent d08053f commit 5fb048d

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

CHANGELOG.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,20 @@ All notable changes to this project will be documented in this file.
66
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
77
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
88

9-
## [Unreleased]
9+
## [4.9.0] - 2024-02-23
1010

1111
### Added
1212

1313
- Nix: `codelldb` adapter package (without the vscode extension)
1414
as a nixpkgs overlay and a flake output.
1515

16+
### Reverted
17+
18+
- Don't run `ftplugin/rust.lua` more than once on the same
19+
buffer.
20+
This prevented the client from reattaching when running
21+
`:e` on a buffer [[#250](https://github.com/mrcjkb/rustaceanvim/issues/250)].
22+
1623
## [4.8.0] - 2024-02-20
1724

1825
### Added

ftplugin/rust.lua

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
local bufnr = vim.api.nvim_get_current_buf()
2-
if vim.b[bufnr].did_rustaceanvim_ftplugin then
3-
return
4-
end
5-
61
---@type RustaceanConfig
72
local config = require('rustaceanvim.config.internal')
83
local types = require('rustaceanvim.types.internal')
@@ -57,5 +52,3 @@ if not auto_attach then
5752
end
5853

5954
lsp.start()
60-
61-
vim.b[bufnr].did_rustaceanvim_ftplugin = true

0 commit comments

Comments
 (0)