Skip to content

Commit c94e3a6

Browse files
fix some breaking changes
1 parent 808e6ab commit c94e3a6

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

lua/modules/lsp/config.lua

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,6 @@ function config.rust_crates()
116116
thousands_separator = ".",
117117
notification_title = "Crates",
118118
curl_args = { "-sL", "--retry", "1" },
119-
disable_invalid_feature_diagnostic = false,
120119
text = {
121120
loading = "  Loading",
122121
version = "  %s",
@@ -229,8 +228,11 @@ function config.rust_crates()
229228
jump_back = { "<c-o>", "<C-RightMouse>" },
230229
},
231230
},
232-
src = {
231+
completion = {
233232
insert_closing_quote = true,
233+
cmp = {
234+
enabled = true,
235+
},
234236
text = {
235237
prerelease = "  pre-release ",
236238
yanked = "  yanked ",
@@ -239,6 +241,11 @@ function config.rust_crates()
239241
enabled = false,
240242
name = "Crates",
241243
},
244+
crates = {
245+
enabled = true, -- disabled by default
246+
max_results = 8, -- The maximum number of search results to display
247+
min_chars = 3, -- The minimum number of charaters to type before completions begin appearing
248+
},
242249
},
243250
null_ls = {
244251
enabled = false,

lua/modules/lsp/plugins.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ lsp({
7575

7676
lsp({
7777
"mrcjkb/rustaceanvim",
78-
version = "^3", -- Recommended
78+
version = "^5", -- Recommended
7979
ft = { "rust" },
8080
config = function()
8181
vim.g.rustaceanvim = {

lua/modules/ui/config.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ function config.fidget()
9898
local relative = "editor"
9999
fidget.setup({
100100
text = {
101-
spinner = "moon",
101+
spinner = "meter",
102102
-- spinner = {
103103
-- " ",
104104
-- " ",

0 commit comments

Comments
 (0)