rename and simplify things
This commit is contained in:
parent
794426402a
commit
b68ecbbe96
16 changed files with 43 additions and 297 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue