nvim/lua/plugins/lazydev.lua 957 B raw
1
return {
2
    {
3
        "folke/lazydev.nvim",
4
        ft = "lua", -- only load on lua files
5
        opts = {
6
            library = {
7
                -- See the configuration section for more details
8
                -- Load luvit types when the `vim.uv` word is found
9
                { path = "${3rd}/luv/library", words = { "vim%.uv" } },
10
            },
11
        },
12
    },
13
    {
14
        "saghen/blink.cmp",
15
        opts = {
16
            sources = {
17
                -- add lazydev to your completion providers
18
                default = { "lazydev", "lsp", "path", "snippets", "buffer" },
19
                providers = {
20
                    lazydev = {
21
                        name = "LazyDev",
22
                        module = "lazydev.integrations.blink",
23
                        -- make lazydev completions top priority (see `:h blink.cmp`)
24
                        score_offset = 100,
25
                    },
26
                },
27
            },
28
        },
29
    }
30
}