From 49c2a1da09d17483f3321fa8e9e4d5d9694fe172 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Sat, 6 Jul 2024 02:38:16 -0500 Subject: [PATCH] refactor(nvim): improve lazy dev types and loading --- .../.config/nvim/lua/plugins/configs/cmp.lua | 29 +++++++++++-------- 1 file changed, 17 insertions(+), 12 deletions(-) diff --git a/users/price/dots/.config/nvim/lua/plugins/configs/cmp.lua b/users/price/dots/.config/nvim/lua/plugins/configs/cmp.lua index 06bf7fcc..2d99397c 100644 --- a/users/price/dots/.config/nvim/lua/plugins/configs/cmp.lua +++ b/users/price/dots/.config/nvim/lua/plugins/configs/cmp.lua @@ -1,21 +1,26 @@ ---@diagnostic disable: missing-fields return { + { + "folke/lazydev.nvim", + cmd = "LazyDev", + ft = "lua", + opts = { + library = { + { path = "luassert-types/library", words = { "assert" } }, + { path = "busted-types/library", words = { "describe" } }, + { path = "luvit-meta/library", words = { "vim%.uv", "vim%.loop" } }, + }, + }, + dependencies = { + { "Bilal2453/luvit-meta", lazy = true }, + { "LuaCATS/luassert", lazy = true }, + { "LuaCATS/busted", lazy = true }, + }, + }, { "hrsh7th/nvim-cmp", event = { "InsertEnter", "ModeChanged" }, dependencies = { - { - "folke/lazydev.nvim", - opts = { - library = { - "luvit-meta/library", - }, - }, - dependencies = { - { "Bilal2453/luvit-meta", lazy = true }, - }, - ft = "lua", - }, "hrsh7th/cmp-nvim-lsp", "hrsh7th/cmp-cmdline", "hrsh7th/cmp-emoji",