Skip to content

Commit cb83e41

Browse files
committed
feat(lsp): load .vscode/settings.json settings by default
1 parent 678ff9d commit cb83e41

File tree

4 files changed

+11
-3
lines changed

4 files changed

+11
-3
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,14 @@ 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+
## [5.2.0] - 2024-08-05
10+
11+
### Added
12+
13+
- Load rust-analyzer settings from `.vscode/settings.json` by default.
14+
Can be disabled by setting `vim.g.rustaceanvim.server.load_vscode_settings`.
15+
This was introduced as an experimental feature in version 4.14.0.
16+
917
## [5.1.5] - 2024-08-05
1018

1119
### Fixed

doc/rustaceanvim.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ rustaceanvim.lsp.ClientOpts *rustaceanvim.lsp.ClientOpts*
299299
{load_vscode_settings?} (boolean)
300300
Whether to search (upward from the buffer) for rust-analyzer settings in .vscode/settings json.
301301
If found, loaded settings will override configured options.
302-
Default: false
302+
Default: true
303303

304304
See: ~
305305
|vim.lsp.ClientConfig|

lua/rustaceanvim/config/init.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ vim.g.rustaceanvim = vim.g.rustaceanvim
189189
---
190190
---Whether to search (upward from the buffer) for rust-analyzer settings in .vscode/settings json.
191191
---If found, loaded settings will override configured options.
192-
---Default: false
192+
---Default: true
193193
---@field load_vscode_settings? boolean
194194
---@see vim.lsp.ClientConfig
195195

lua/rustaceanvim/config/internal.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ local RustaceanDefaultConfig = {
290290
['rust-analyzer'] = {},
291291
},
292292
---@type boolean Whether to search (upward from the buffer) for rust-analyzer settings in .vscode/settings json.
293-
load_vscode_settings = false,
293+
load_vscode_settings = true,
294294
},
295295

296296
--- debugging stuff

0 commit comments

Comments
 (0)