Skip to content

Commit

Permalink
lazydev
Browse files Browse the repository at this point in the history
  • Loading branch information
aceforeverd committed Jun 11, 2024
1 parent 822462b commit ab2d2dc
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
2 changes: 2 additions & 0 deletions lua/aceforeverd/config/cmp.lua
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ function M.setup()
-- level 1 source
local sources_1 = {
{ name = 'nvim_lsp' },
{ name = "lazydev" },
{ name = 'luasnip', option = { use_show_condition = false } },

{ name = 'nvim_lua' },
Expand Down Expand Up @@ -136,6 +137,7 @@ function M.setup()
maxwidth = 50,
menu = {
nvim_lsp = '[LSP]',
lazydev = '[LazyDev]',
luasnip = '[LuaSnip]',
buffer = '[Buffer]',
path = '[Path]',
Expand Down
20 changes: 18 additions & 2 deletions lua/aceforeverd/plugins/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,25 @@ M.plugin_list = {
pathStrict = true,
})
end,
lazy = true,
cond = function()
return vim.fn.has('nvim-0.10') ~= 1
end,
},

{
"folke/lazydev.nvim",
ft = "lua",
opts = {
library = {
{ path = "luvit-meta/library", words = { "vim%.uv" } },
},
},
cond = function()
return vim.fn.has('nvim-0.10') == 1
end,
},
{ "Bilal2453/luvit-meta", lazy = true }, -- optional `vim.uv` typings

{
-- LSP signature hint as you type
'ray-x/lsp_signature.nvim',
Expand All @@ -177,7 +194,6 @@ M.plugin_list = {
'williamboman/mason.nvim',
'p00f/clangd_extensions.nvim',
-- lsp enhance
'folke/neodev.nvim',
'b0o/schemastore.nvim',
'SmiteshP/nvim-navic',
'SmiteshP/nvim-navbuddy',
Expand Down

0 comments on commit ab2d2dc

Please sign in to comment.