diff --git a/CHANGELOG.md b/CHANGELOG.md index db844152..2e001383 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/ftplugin/rust.lua b/ftplugin/rust.lua index 22ca833a..cb274e65 100644 --- a/ftplugin/rust.lua +++ b/ftplugin/rust.lua @@ -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') @@ -57,5 +52,3 @@ if not auto_attach then end lsp.start() - -vim.b[bufnr].did_rustaceanvim_ftplugin = true