Skip to content

Commit 2f900e2

Browse files
authored
docs: fix rust-analyzer snippet example (#2289)
1 parent f132267 commit 2f900e2

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

doc/configuration/snippets.md

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -138,11 +138,16 @@ Some LSPs may ignore the `snippetSupport` field, in which case, you need to set
138138

139139
-- For `rust-analyzer`
140140
lspconfig['rust-analyzer'].setup({
141-
completion = {
142-
callable = {
143-
snippets = 'add_parenthesis'
144-
}
145-
}
141+
settings = {
142+
['rust-analyzer'] = {
143+
completion = {
144+
callable = {
145+
-- https://rust-analyzer.github.io/book/configuration.html#completion.callable.snippets
146+
snippets = 'add_parentheses', -- or 'none'
147+
},
148+
},
149+
},
150+
},
146151
})
147152

148153
-- For `lua_ls`

0 commit comments

Comments
 (0)