rename and simplify things

This commit is contained in:
Barrett Ruth 2025-10-05 11:59:24 -04:00
parent 794426402a
commit b68ecbbe96
16 changed files with 43 additions and 297 deletions

View file

@ -2,7 +2,6 @@ local M = {}
local config_module = require('cp.config')
local logger = require('cp.log')
local snippets = require('cp.snippets')
if vim.fn.has('nvim-0.10.0') == 0 then
logger.log('Requires nvim-0.10.0+', vim.log.levels.ERROR)
@ -11,7 +10,6 @@ end
local user_config = {}
local config = nil
local snippets_initialized = false
local initialized = false
--- Root handler for all `:CP ...` commands
@ -27,10 +25,6 @@ function M.setup(opts)
config = config_module.setup(user_config)
config_module.set_current_config(config)
if not snippets_initialized then
snippets.setup(config)
snippets_initialized = true
end
initialized = true
end