diff --git a/lua/plugins/configs/others.lua b/lua/plugins/configs/others.lua index 023efd3..0200d4e 100644 --- a/lua/plugins/configs/others.lua +++ b/lua/plugins/configs/others.lua @@ -76,7 +76,7 @@ M.crates = function() local options = { popup = { style = "minimal", - order = "rounded", + border = "rounded", show_version_date = false, show_dependency_version = true, padding = 1, diff --git a/lua/plugins/init.lua b/lua/plugins/init.lua index 09a5782..e8b2588 100644 --- a/lua/plugins/init.lua +++ b/lua/plugins/init.lua @@ -99,7 +99,12 @@ local plugins = { event = { "BufRead Cargo.toml" }, config = function() require("plugins.configs.others").crates() - end + end, + -- Add crates.nvim to the cmp sources as soon as we load the plugin + init = function() + local cmp = require("cmp"); + cmp.setup.buffer({ sources = { { name = "crates" } } }) + end, }, -- load luasnips + cmp related in insert mode only