mirror of
https://github.com/LunarVim/LunarVim.git
synced 2025-07-22 19:55:10 +02:00
wrap requires in pcall
This commit is contained in:
parent
0e2ad0c1fe
commit
716f127e95
12 changed files with 58 additions and 16 deletions
|
@ -7,7 +7,7 @@ local M = {}
|
|||
vim.g.vsnip_snippet_dir = O.vnsip_dir
|
||||
|
||||
M.config = function()
|
||||
opt = {
|
||||
local opt = {
|
||||
enabled = O.auto_complete,
|
||||
autocomplete = true,
|
||||
debug = false,
|
||||
|
@ -39,8 +39,12 @@ M.config = function()
|
|||
-- for emoji press : (idk if that in compe tho)
|
||||
},
|
||||
}
|
||||
local status_ok, compe = pcall(require, "compe")
|
||||
if not status_ok then
|
||||
return
|
||||
end
|
||||
|
||||
require("compe").setup(opt)
|
||||
compe.setup(opt)
|
||||
|
||||
local t = function(str)
|
||||
return vim.api.nvim_replace_termcodes(str, true, true, true)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue