my-nvim-lua/lua/custom/plugins/configs/refactoring.lua

37 lines
668 B
Lua
Raw Normal View History

2023-01-28 03:01:20 +00:00
local ok, refactoring = pcall(require, 'refactoring')
if not ok then
vim.notify("missing module refactoring", vim.log.levels.WARN)
return
end
local M = {}
local config = {
-- prompt for return type
prompt_func_return_type = {
go = true,
cpp = true,
c = true,
java = true,
},
-- prompt for function parameters
prompt_func_param_type = {
go = true,
cpp = true,
c = true,
java = true,
},
2023-08-06 12:15:51 +00:00
printf_statements = {},
print_var_statements = {},
2023-01-28 03:01:20 +00:00
}
M.setup = function()
refactoring.setup(config)
-- require("telescope").load_extension("refactoring")
end
return M