Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,10 @@ return {
-- instead of rustaceanvim's built-in vscode settings loader
load_vscode_settings = false,
-- the global hook doesn't work when configuring rust-analyzer with rustaceanvim
settings = function(_, config)
return require('codesettings').with_local_settings('rust-analyzer', config)
settings = function(_, settings)
-- Note: you have to wrap the `settings` table because of how `rustaceanvim`
-- passes just the `settings` table in here, not the full `vim.lsp.Config` object.
return require('codesettings').with_local_settings('rust-analyzer', { settings = settings })
end,
default_settings = {
['rust-analyzer'] = {
Expand Down