feat: update logging with debug logs

This commit is contained in:
Barrett Ruth 2025-09-12 23:21:32 -05:00
parent 5c93bd259e
commit e9f1b06843
5 changed files with 51 additions and 35 deletions

View file

@ -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