Skip to content

Commit ab2d2dc

Browse files
committed
lazydev
1 parent 822462b commit ab2d2dc

File tree

2 files changed

+20
-2
lines changed

2 files changed

+20
-2
lines changed

lua/aceforeverd/config/cmp.lua

+2
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ function M.setup()
6767
-- level 1 source
6868
local sources_1 = {
6969
{ name = 'nvim_lsp' },
70+
{ name = "lazydev" },
7071
{ name = 'luasnip', option = { use_show_condition = false } },
7172

7273
{ name = 'nvim_lua' },
@@ -136,6 +137,7 @@ function M.setup()
136137
maxwidth = 50,
137138
menu = {
138139
nvim_lsp = '[LSP]',
140+
lazydev = '[LazyDev]',
139141
luasnip = '[LuaSnip]',
140142
buffer = '[Buffer]',
141143
path = '[Path]',

lua/aceforeverd/plugins/init.lua

+18-2
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,25 @@ M.plugin_list = {
152152
pathStrict = true,
153153
})
154154
end,
155-
lazy = true,
155+
cond = function()
156+
return vim.fn.has('nvim-0.10') ~= 1
157+
end,
158+
},
159+
160+
{
161+
"folke/lazydev.nvim",
162+
ft = "lua",
163+
opts = {
164+
library = {
165+
{ path = "luvit-meta/library", words = { "vim%.uv" } },
166+
},
167+
},
168+
cond = function()
169+
return vim.fn.has('nvim-0.10') == 1
170+
end,
156171
},
172+
{ "Bilal2453/luvit-meta", lazy = true }, -- optional `vim.uv` typings
173+
157174
{
158175
-- LSP signature hint as you type
159176
'ray-x/lsp_signature.nvim',
@@ -177,7 +194,6 @@ M.plugin_list = {
177194
'williamboman/mason.nvim',
178195
'p00f/clangd_extensions.nvim',
179196
-- lsp enhance
180-
'folke/neodev.nvim',
181197
'b0o/schemastore.nvim',
182198
'SmiteshP/nvim-navic',
183199
'SmiteshP/nvim-navbuddy',

0 commit comments

Comments
 (0)