From 36e4de3035391caf46d4ee88a8b4cbe264888e46 Mon Sep 17 00:00:00 2001 From: Ismo Vuorinen Date: Fri, 10 Jan 2025 22:13:00 +0200 Subject: [PATCH] chore(nvim): add lazydev to blink.cmp completions --- config/nvim/lua/plugins/blink.lua | 7 +++++++ config/nvim/lua/plugins/lsp.lua | 3 +++ 2 files changed, 10 insertions(+) diff --git a/config/nvim/lua/plugins/blink.lua b/config/nvim/lua/plugins/blink.lua index 88bade6..a11ec0a 100644 --- a/config/nvim/lua/plugins/blink.lua +++ b/config/nvim/lua/plugins/blink.lua @@ -95,6 +95,7 @@ return { -- elsewhere in your config, without redefining it, via `opts_extend` sources = { default = { + 'lazydev', 'lsp', 'snippets', 'copilot', @@ -106,6 +107,12 @@ return { name = 'copilot', module = 'blink-cmp-copilot', }, + lazydev = { + name = 'LazyDev', + module = 'lazydev.integrations.blink', + -- make lazydev completions top priority (see `:h blink.cmp`) + score_offset = 100, + }, }, }, diff --git a/config/nvim/lua/plugins/lsp.lua b/config/nvim/lua/plugins/lsp.lua index cded711..cb7843f 100644 --- a/config/nvim/lua/plugins/lsp.lua +++ b/config/nvim/lua/plugins/lsp.lua @@ -124,6 +124,9 @@ return { library = { -- Load luvit types when the `vim.uv` word is found { path = 'luvit-meta/library', words = { 'vim%.uv' } }, + -- load assert and describe paths + { path = 'luassert/library', words = { 'assert' } }, + { path = 'busted/library', words = { 'describe' } }, }, }, },