Skip to content

Commit b756f95

Browse files
authored
Merge pull request #84 from mrjones2014/mrj/82/fix-rustaceanvim-docs
fix(docs): Fix rustaceanvim example config
2 parents dc8cd4b + 427abf5 commit b756f95

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,10 @@ return {
137137
-- instead of rustaceanvim's built-in vscode settings loader
138138
load_vscode_settings = false,
139139
-- the global hook doesn't work when configuring rust-analyzer with rustaceanvim
140-
settings = function(_, config)
141-
return require('codesettings').with_local_settings('rust-analyzer', config)
140+
settings = function(_, settings)
141+
-- Note: you have to wrap the `settings` table because of how `rustaceanvim`
142+
-- passes just the `settings` table in here, not the full `vim.lsp.Config` object.
143+
return require('codesettings').with_local_settings('rust-analyzer', { settings = settings })
142144
end,
143145
default_settings = {
144146
['rust-analyzer'] = {

0 commit comments

Comments
 (0)