Files
nvim-config/lua/plugins/lazydev.lua
2025-02-12 11:20:39 -05:00

50 lines
1.5 KiB
Lua

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" } },
},
},
},
{ -- 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",
-- tag = "v0.11.0",
-- 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,
-- },
-- },
-- },
-- fuzzy = {
-- prebuilt_binaries = {
-- download = true,
-- force_version = nil,
-- force_system_triple = nil,
-- extra_curl_args = { '--insecure' }
-- },
-- },
-- },
-- }
}