From c1a605ef202cac4fe29223578268f596de8f0c4d Mon Sep 17 00:00:00 2001 From: voidarclabs Date: Tue, 25 Nov 2025 11:46:29 +0000 Subject: [PATCH] fixed lazydev --- lua/plugins/completion/blink.lua | 17 +++++++++-------- lua/plugins/completion/lazydev.lua | 28 +++++++--------------------- 2 files changed, 16 insertions(+), 29 deletions(-) diff --git a/lua/plugins/completion/blink.lua b/lua/plugins/completion/blink.lua index de8f6a4..e02a7ee 100644 --- a/lua/plugins/completion/blink.lua +++ b/lua/plugins/completion/blink.lua @@ -4,14 +4,6 @@ return { "L3MON4D3/LuaSnip", }, opts = { - providers = { - lazydev = { - name = "LazyDev", - module = "lazydev.integrations.blink", - priority = 100, - }, - }, - -- Snippet configuration snippets = { preset = "luasnip", -- Tells blink.cmp to use LuaSnip @@ -36,12 +28,21 @@ return { }, sources = { default = { + "lazydev", "lsp", -- (Equivalent to cmp-nvim-lsp) "snippets", -- (Handled by the snippets config, replaces cmp_luasnip source) "buffer", -- (Equivalent to cmp-buffer) "path", -- (Equivalent to cmp-path) -- "cmdline", -- Generally configured separately, but often included by default }, + providers = { + lazydev = { + name = "LazyDev", + module = "lazydev.integrations.blink", + -- make lazydev completions top priority (see `:h blink.cmp`) + score_offset = 100, + }, + }, }, }, } diff --git a/lua/plugins/completion/lazydev.lua b/lua/plugins/completion/lazydev.lua index e06cb4c..72ebd73 100644 --- a/lua/plugins/completion/lazydev.lua +++ b/lua/plugins/completion/lazydev.lua @@ -1,25 +1,11 @@ return { - { - "folke/lazydev.nvim", - ft = "lua", -- only load on lua files - opts = { - library = { - -- See the configuration section for more details - -- Load luvit types when the `vim.uv` word is found - { path = "${3rd}/luv/library", words = { "vim%.uv" } }, - }, - sources = { - -- add lazydev to your completion providers - default = { "lazydev", "lsp", "path", "snippets", "buffer" }, - providers = { - lazydev = { - name = "LazyDev", - module = "lazydev.integrations.blink", - -- make lazydev completions top priority (see `:h blink.cmp`) - score_offset = 100, - }, - }, - }, + "folke/lazydev.nvim", + ft = "lua", -- only load on lua files + opts = { + library = { + -- See the configuration section for more details + -- Load luvit types when the `vim.uv` word is found + { path = "${3rd}/luv/library", words = { "vim%.uv" } }, }, }, }