23 lines
506 B
Lua
23 lines
506 B
Lua
-- safe imports
|
|
local status, cmp = pcall(require, "cmp")
|
|
if not status then
|
|
print("cmp not installed")
|
|
return
|
|
end
|
|
local status, luasnip = pcall(require, "luasnip")
|
|
if not status then
|
|
print("luasnip not installed")
|
|
return
|
|
end
|
|
local status, cmp_capabilities = pcall(require, "cmp_nvim_lsp")
|
|
if not status then
|
|
print("cmp_nvim_lsp not installed")
|
|
return
|
|
end
|
|
local status, lspconfig = pcall(require, "lspconfig")
|
|
if not status then
|
|
print("lspconfig not installed")
|
|
return
|
|
end
|
|
|