Compare commits
2 Commits
314be14e73
...
main
Author | SHA1 | Date | |
---|---|---|---|
c02781e3bf
|
|||
aca3a6f5b6
|
@@ -1,3 +1,10 @@
|
||||
local source_priority = {
|
||||
snippets = 4,
|
||||
lsp = 3,
|
||||
path = 2,
|
||||
buffer = 1
|
||||
}
|
||||
|
||||
require('lazy').setup({
|
||||
-- NOTE: First, some plugins that don't require any configuration
|
||||
|
||||
@@ -37,6 +44,7 @@ require('lazy').setup({
|
||||
|
||||
-- DAP: Debug Adapter Protocol
|
||||
'mfussenegger/nvim-dap',
|
||||
|
||||
{
|
||||
-- [[ Autocompletion ]]
|
||||
'saghen/blink.cmp',
|
||||
@@ -68,7 +76,7 @@ require('lazy').setup({
|
||||
-- C-k: Toggle signature help (if signature.enabled = true)
|
||||
--
|
||||
-- See :h blink-cmp-config-keymap for defining your own keymap
|
||||
keymap = { preset = 'super-tab' },
|
||||
keymap = { preset = 'default' },
|
||||
|
||||
appearance = {
|
||||
-- 'mono' (default) for 'Nerd Font Mono' or 'normal' for 'Nerd Font'
|
||||
@@ -103,7 +111,21 @@ require('lazy').setup({
|
||||
-- when the Rust fuzzy matcher is not available, by using `implementation = "prefer_rust"`
|
||||
--
|
||||
-- See the fuzzy documentation for more information
|
||||
fuzzy = { implementation = "prefer_rust_with_warning" }
|
||||
fuzzy = {
|
||||
implementation = "prefer_rust_with_warning",
|
||||
sorts = {
|
||||
function(a, b)
|
||||
local a_priority = source_priority[a.source_id];
|
||||
local b_priority = source_priority[b.source_id];
|
||||
if a_priority ~= b_priority then
|
||||
return a_priority > b_priority
|
||||
end
|
||||
end,
|
||||
-- default
|
||||
'score',
|
||||
'sort_text'
|
||||
}
|
||||
}
|
||||
},
|
||||
opts_extend = { "sources.default" }
|
||||
},
|
||||
|
Reference in New Issue
Block a user