Skip to content

Commit

Permalink
fix(lsp): Update lazydev.
Browse files Browse the repository at this point in the history
  • Loading branch information
DrKJeff16 committed Jun 5, 2024
1 parent 5cb93da commit 7c13091
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions lua/lazy_cfg/lspconfig/lazydev.lua
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ local config = stdpath('config')

local LazyDev = require('lazydev')

---@type lazydev.Library.spec[]
local library = vim.deepcopy(vim.opt.rtp:get())

table.insert(library, { path = 'luvit-meta/library', words = { 'vim%.uv' } })

LazyDev.setup({
Expand All @@ -34,8 +34,9 @@ LazyDev.setup({
return not is_nil(vim.g.lazydev_enabled) and vim.g.lazydev_enabled or true
end,

-- add the cmp source for completion of:
-- `require "modname"`
-- `---@module "modname"`
cmp = true,
integrations = {
lspconfig = true,
cmp = exists('cmp'),
coq = false,
},
})

0 comments on commit 7c13091

Please sign in to comment.