From 529898343aed91872813833b1fa6bdf688cc4b2e Mon Sep 17 00:00:00 2001 From: Alexander Neonxp Kiryukhin Date: Thu, 12 Feb 2026 18:21:04 +0300 Subject: 12.02.2026 --- config/nvim/lua/plugins/lazydev.lua | 42 +++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 config/nvim/lua/plugins/lazydev.lua (limited to 'config/nvim/lua/plugins/lazydev.lua') diff --git a/config/nvim/lua/plugins/lazydev.lua b/config/nvim/lua/plugins/lazydev.lua new file mode 100644 index 0000000..0db6014 --- /dev/null +++ b/config/nvim/lua/plugins/lazydev.lua @@ -0,0 +1,42 @@ +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" } }, + { "nvim-dap-ui" }, + }, + }, + }, + { -- optional cmp completion source for require statements and module annotations + "hrsh7th/nvim-cmp", + opts = function(_, opts) + opts.sources = opts.sources or {} + table.insert(opts.sources, { + name = "lazydev", + group_index = 0, -- set group index to 0 to skip loading LuaLS completions + }) + end, + }, + { -- optional blink completion source for require statements and module annotations + "saghen/blink.cmp", + opts = { + 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/neodev.nvim", enabled = false }, -- make sure to uninstall or disable neodev.nvim +} -- cgit v1.2.3