feat: clearcol
This commit is contained in:
parent
114187164e
commit
13933fc7fd
6 changed files with 40 additions and 1 deletions
|
|
@ -56,6 +56,7 @@
|
|||
local M = {}
|
||||
|
||||
local constants = require('cp.constants')
|
||||
local helpers = require('cp.helpers')
|
||||
local utils = require('cp.utils')
|
||||
|
||||
-- defaults per the new single schema
|
||||
|
|
@ -103,7 +104,13 @@ M.defaults = {
|
|||
default_language = 'cpp',
|
||||
},
|
||||
},
|
||||
hooks = { before_run = nil, before_debug = nil, setup_code = nil },
|
||||
hooks = {
|
||||
before_run = nil,
|
||||
before_debug = nil,
|
||||
setup_code = nil,
|
||||
setup_io_input = helpers.clearcol,
|
||||
setup_io_output = helpers.clearcol,
|
||||
},
|
||||
debug = false,
|
||||
scrapers = constants.PLATFORMS,
|
||||
filename = nil,
|
||||
|
|
@ -231,6 +238,8 @@ function M.setup(user_config)
|
|||
before_run = { cfg.hooks.before_run, { 'function', 'nil' }, true },
|
||||
before_debug = { cfg.hooks.before_debug, { 'function', 'nil' }, true },
|
||||
setup_code = { cfg.hooks.setup_code, { 'function', 'nil' }, true },
|
||||
setup_io_input = { cfg.hooks.setup_io_input, { 'function', 'nil' }, true },
|
||||
setup_io_output = { cfg.hooks.setup_io_output, { 'function', 'nil' }, true },
|
||||
})
|
||||
|
||||
vim.validate({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue