Skip to content

Commit

Permalink
fix(lsp): inability to load rust-analyzer.json without rust-analzyer key
Browse files Browse the repository at this point in the history
  • Loading branch information
mrcjkb committed May 24, 2024
1 parent 7d20366 commit e306c74
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ 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).

## [4.23.5] - 2024-05-24

### Fixed

- LSP: Bug preventing rustaceanvim from loading `rust-analyzer.json` settings
if there's no `"rust-analyzer":` key.

## [4.23.4] - 2024-05-23

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion lua/rustaceanvim/config/server.lua
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ function server.load_rust_analyzer_settings(project_root, opts)
local json = require('rustaceanvim.config.json')
local rust_analyzer_settings = json.silent_decode(content)
local ra_key = 'rust-analyzer'
local has_ra_key = true
local has_ra_key = false
for key, _ in pairs(rust_analyzer_settings) do
if key:find(ra_key) ~= nil then
has_ra_key = true
Expand Down

0 comments on commit e306c74

Please sign in to comment.