Skip to content

Commit

Permalink
revert: don't run ftplugin/rust.lua more than once per buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
mrcjkb committed Feb 23, 2024
1 parent d08053f commit 5fb048d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
9 changes: 8 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,20 @@ 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).

## [Unreleased]
## [4.9.0] - 2024-02-23

### Added

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

### Reverted

- Don't run `ftplugin/rust.lua` more than once on the same
buffer.
This prevented the client from reattaching when running
`:e` on a buffer [[#250](https://github.com/mrcjkb/rustaceanvim/issues/250)].

## [4.8.0] - 2024-02-20

### Added
Expand Down
7 changes: 0 additions & 7 deletions ftplugin/rust.lua
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
local bufnr = vim.api.nvim_get_current_buf()
if vim.b[bufnr].did_rustaceanvim_ftplugin then
return
end

---@type RustaceanConfig
local config = require('rustaceanvim.config.internal')
local types = require('rustaceanvim.types.internal')
Expand Down Expand Up @@ -57,5 +52,3 @@ if not auto_attach then
end

lsp.start()

vim.b[bufnr].did_rustaceanvim_ftplugin = true

0 comments on commit 5fb048d

Please sign in to comment.