feat: update logging with debug logs
This commit is contained in:
parent
5c93bd259e
commit
e9f1b06843
5 changed files with 51 additions and 35 deletions
|
|
@ -1,9 +1,10 @@
|
|||
local M = {}
|
||||
local logger = require("cp.log")
|
||||
|
||||
function M.setup(config)
|
||||
local ok, ls = pcall(require, "luasnip")
|
||||
if not ok then
|
||||
vim.notify("[cp.nvim]: LuaSnip not available - snippets disabled", vim.log.levels.INFO)
|
||||
logger.log("LuaSnip not available - snippets disabled", vim.log.levels.INFO)
|
||||
return
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue