mirror of
https://github.com/kristoferssolo/SoloVim.git
synced 2025-10-21 20:10:41 +00:00
Update 2025-05-03 Update 2025-05-05 Update 2025-05-07 Update 2025-05-09 chore: use mini.nvim Update 2025-05-12 Update 2025-05-14 Update 2025-05-16 Update 2025-05-17 Update 2025-05-20 Update 2025-05-21 Update 2025-05-23 Update 2025-05-25 Update 2025-05-30
161 lines
4.6 KiB
Lua
161 lines
4.6 KiB
Lua
return {
|
|
{
|
|
|
|
"Saecki/crates.nvim",
|
|
tag = "stable",
|
|
event = { "BufRead Cargo.toml" },
|
|
keys = {
|
|
{
|
|
"<leader>ru",
|
|
require("crates").upgrade_all_crates,
|
|
desc = "Upgrade all crates",
|
|
ft = { "rust", "toml" },
|
|
},
|
|
},
|
|
opts = {
|
|
completion = {
|
|
cmp = {
|
|
enabled = true,
|
|
},
|
|
},
|
|
smart_insert = true,
|
|
insert_closing_quote = true,
|
|
autoload = true,
|
|
autoupdate = true,
|
|
loading_indicator = true,
|
|
date_format = "%d-%m-%Y",
|
|
thousands_separator = ".",
|
|
notification_title = "Crates",
|
|
-- disable_invalid_feature_diagnostic = false,
|
|
text = {
|
|
loading = " Loading",
|
|
version = " %s",
|
|
prerelease = " %s",
|
|
yanked = " %s",
|
|
nomatch = " No match",
|
|
upgrade = " %s",
|
|
error = " Error fetching crate",
|
|
},
|
|
highlight = {
|
|
loading = "CratesNvimLoading",
|
|
version = "CratesNvimVersion",
|
|
prerelease = "CratesNvimPreRelease",
|
|
yanked = "CratesNvimYanked",
|
|
nomatch = "CratesNvimNoMatch",
|
|
upgrade = "CratesNvimUpgrade",
|
|
error = "CratesNvimError",
|
|
},
|
|
popup = {
|
|
autofocus = false,
|
|
copy_register = '"',
|
|
style = "minimal",
|
|
border = "none",
|
|
show_version_date = false,
|
|
show_dependency_version = true,
|
|
max_height = 30,
|
|
min_width = 20,
|
|
padding = 1,
|
|
text = {
|
|
title = " %s",
|
|
pill_left = "",
|
|
pill_right = "",
|
|
description = "%s",
|
|
created_label = " created ",
|
|
created = "%s",
|
|
updated_label = " updated ",
|
|
updated = "%s",
|
|
downloads_label = " downloads ",
|
|
downloads = "%s",
|
|
homepage_label = " homepage ",
|
|
homepage = "%s",
|
|
repository_label = " repository ",
|
|
repository = "%s",
|
|
documentation_label = " documentation ",
|
|
documentation = "%s",
|
|
crates_io_label = " crates.io ",
|
|
crates_io = "%s",
|
|
categories_label = " categories ",
|
|
keywords_label = " keywords ",
|
|
version = " %s",
|
|
prerelease = " %s",
|
|
yanked = " %s",
|
|
version_date = " %s",
|
|
feature = " %s",
|
|
enabled = " %s",
|
|
transitive = " %s",
|
|
normal_dependencies_title = " Dependencies",
|
|
build_dependencies_title = " Build dependencies",
|
|
dev_dependencies_title = " Dev dependencies",
|
|
dependency = " %s",
|
|
optional = " %s",
|
|
dependency_version = " %s",
|
|
loading = " ",
|
|
},
|
|
highlight = {
|
|
title = "CratesNvimPopupTitle",
|
|
pill_text = "CratesNvimPopupPillText",
|
|
pill_border = "CratesNvimPopupPillBorder",
|
|
description = "CratesNvimPopupDescription",
|
|
created_label = "CratesNvimPopupLabel",
|
|
created = "CratesNvimPopupValue",
|
|
updated_label = "CratesNvimPopupLabel",
|
|
updated = "CratesNvimPopupValue",
|
|
downloads_label = "CratesNvimPopupLabel",
|
|
downloads = "CratesNvimPopupValue",
|
|
homepage_label = "CratesNvimPopupLabel",
|
|
homepage = "CratesNvimPopupUrl",
|
|
repository_label = "CratesNvimPopupLabel",
|
|
repository = "CratesNvimPopupUrl",
|
|
documentation_label = "CratesNvimPopupLabel",
|
|
documentation = "CratesNvimPopupUrl",
|
|
crates_io_label = "CratesNvimPopupLabel",
|
|
crates_io = "CratesNvimPopupUrl",
|
|
categories_label = "CratesNvimPopupLabel",
|
|
keywords_label = "CratesNvimPopupLabel",
|
|
version = "CratesNvimPopupVersion",
|
|
prerelease = "CratesNvimPopupPreRelease",
|
|
yanked = "CratesNvimPopupYanked",
|
|
version_date = "CratesNvimPopupVersionDate",
|
|
feature = "CratesNvimPopupFeature",
|
|
enabled = "CratesNvimPopupEnabled",
|
|
transitive = "CratesNvimPopupTransitive",
|
|
normal_dependencies_title = "CratesNvimPopupNormalDependenciesTitle",
|
|
build_dependencies_title = "CratesNvimPopupBuildDependenciesTitle",
|
|
dev_dependencies_title = "CratesNvimPopupDevDependenciesTitle",
|
|
dependency = "CratesNvimPopupDependency",
|
|
optional = "CratesNvimPopupOptional",
|
|
dependency_version = "CratesNvimPopupDependencyVersion",
|
|
loading = "CratesNvimPopupLoading",
|
|
},
|
|
keys = {
|
|
hide = { "q", "<esc>" },
|
|
open_url = { "<cr>" },
|
|
select = { "<cr>" },
|
|
select_alt = { "s" },
|
|
toggle_feature = { "<cr>" },
|
|
copy_value = { "yy" },
|
|
goto_item = { "gd", "K", "<C-LeftMouse>" },
|
|
jump_forward = { "<c-i>" },
|
|
jump_back = { "<c-o>", "<C-RightMouse>" },
|
|
},
|
|
},
|
|
--[[ src = {
|
|
insert_closing_quote = true,
|
|
text = {
|
|
prerelease = " pre-release ",
|
|
yanked = " yanked ",
|
|
},
|
|
}, ]]
|
|
},
|
|
},
|
|
{
|
|
"Aityz/cratesearch.nvim",
|
|
event = { "BufRead Cargo.toml" },
|
|
ft = { "rust" },
|
|
cmd = { "CrateSearch" },
|
|
config = function()
|
|
require("cratesearch").setup()
|
|
end,
|
|
},
|
|
}
|