mirror of
https://github.com/kristoferssolo/SoloVim.git
synced 2026-02-04 06:42:05 +00:00
Update 2025-03-30
Update 2025-03-08 Update 2025-03-09 Update 2025-03-10 Update 2025-03-12 Update 2025-03-15 Update 2025-03-16 Update 2025-03-17 Update 2025-03-18 Update 2025-03-21 Update 2025-03-23 Update 2025-03-27 Update 2025-03-28 Update 2025-03-30
This commit is contained in:
@@ -4,6 +4,8 @@ return {
|
||||
dependencies = {
|
||||
"folke/lazydev.nvim",
|
||||
"echasnovski/mini.icons",
|
||||
"jdrupal-dev/css-vars.nvim",
|
||||
"xzbdmw/colorful-menu.nvim",
|
||||
{ "L3MON4D3/LuaSnip", version = "v2.*" },
|
||||
{
|
||||
"Saecki/crates.nvim",
|
||||
@@ -71,14 +73,24 @@ return {
|
||||
"lsp",
|
||||
"path",
|
||||
"buffer",
|
||||
"dbee",
|
||||
"snippets",
|
||||
"ripgrep",
|
||||
"obsidian",
|
||||
-- "markdown",
|
||||
"jupynium",
|
||||
"css_vars",
|
||||
},
|
||||
per_filetype = {
|
||||
sql = { "dbee", "buffer", "snippets" },
|
||||
musql = { "dbee", "buffer", "snippets" },
|
||||
plsql = { "dbee", "buffer", "snippets" },
|
||||
markdown = { "lsp", "obsidian", "ripgrep", "buffer", "path", "snippets" },
|
||||
},
|
||||
providers = {
|
||||
buffer = {
|
||||
score_offset = -50,
|
||||
opts = {
|
||||
prefix_min_len = 3,
|
||||
},
|
||||
},
|
||||
lazydev = {
|
||||
name = "LazyDev",
|
||||
module = "lazydev.integrations.blink",
|
||||
@@ -99,17 +111,12 @@ return {
|
||||
module = "blink.compat.source",
|
||||
score_offset = 10,
|
||||
},
|
||||
-- markdown = {
|
||||
-- name = "RenderMarkdown",
|
||||
-- module = "render-markdown.integ.blink",
|
||||
-- score_offset = 10,
|
||||
-- fallbacks = { "lsp" },
|
||||
-- },
|
||||
ripgrep = {
|
||||
module = "blink-ripgrep",
|
||||
name = "Ripgrep",
|
||||
score_offset = -100,
|
||||
opts = {
|
||||
prefix_min_len = 3,
|
||||
prefix_min_len = 5,
|
||||
context_size = 5,
|
||||
max_filesize = "1M",
|
||||
project_root_marker = { ".git", "package.json", ".root" },
|
||||
@@ -127,7 +134,7 @@ return {
|
||||
jupynium = {
|
||||
name = "jupynium",
|
||||
module = "blink.compat.source",
|
||||
score_offset = 1000,
|
||||
score_offset = 100,
|
||||
},
|
||||
git = {
|
||||
score_offset = 100,
|
||||
@@ -139,8 +146,23 @@ return {
|
||||
end,
|
||||
opts = {},
|
||||
},
|
||||
css_vars = {
|
||||
name = "css-vars",
|
||||
module = "css-vars.blink",
|
||||
opts = {
|
||||
-- WARNING: The search is not optimized to look for variables in JS files.
|
||||
-- If you change the search_extensions you might get false positives and weird completion results.
|
||||
search_extensions = { ".js", ".ts", ".jsx", ".tsx" },
|
||||
},
|
||||
},
|
||||
snippets = {
|
||||
score_offset = -10,
|
||||
},
|
||||
},
|
||||
},
|
||||
cmdline = {
|
||||
enabled = false,
|
||||
},
|
||||
completion = {
|
||||
-- 'prefix' will fuzzy match on the text before the cursor
|
||||
-- 'full' will fuzzy match on the text before *and* after the cursor
|
||||
@@ -156,18 +178,12 @@ return {
|
||||
},
|
||||
list = {
|
||||
selection = {
|
||||
preselect = function(ctx)
|
||||
return ctx.mode ~= "cmdline"
|
||||
end,
|
||||
auto_insert = function(ctx)
|
||||
return ctx.mode ~= "cmdline"
|
||||
end,
|
||||
preselect = true,
|
||||
auto_insert = true,
|
||||
},
|
||||
},
|
||||
menu = {
|
||||
auto_show = function(ctx)
|
||||
return ctx.mode ~= "cmdline"
|
||||
end,
|
||||
auto_show = true,
|
||||
border = "single",
|
||||
draw = {
|
||||
columns = { { "kind_icon" }, { "label", "label_description", gap = 1 }, { "kind" } },
|
||||
@@ -184,6 +200,14 @@ return {
|
||||
return hl
|
||||
end,
|
||||
},
|
||||
label = {
|
||||
text = function(ctx)
|
||||
return require("colorful-menu").blink_components_text(ctx)
|
||||
end,
|
||||
highlight = function(ctx)
|
||||
return require("colorful-menu").blink_components_highlight(ctx)
|
||||
end,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user