rework: check description
docs: removed lines about plenary removal: plenary chore: optmized presets load to default nil as 'max' rework: changed window format of manager and added coloring Future plans: Add custom highlight-groups for Polydev to configure border and background or manager
This commit is contained in:
@@ -2,7 +2,7 @@ local utils = require("Polydev.utils")
|
||||
|
||||
local M = {}
|
||||
|
||||
local function aux_file(guard, file_type, file_name)
|
||||
local function extras(guard, file_type, file_name)
|
||||
if not file_name then return print("Header file creation canceled") end
|
||||
local guard_macro = file_name:upper():gsub("[^A-Z0-9]", "_") .. guard
|
||||
local content = string.format([[
|
||||
@@ -239,14 +239,14 @@ public class %s {
|
||||
}
|
||||
}
|
||||
|
||||
M.aux_files = {
|
||||
M.extras = {
|
||||
run = function (lang, file_name)
|
||||
if lang == "c" then
|
||||
aux_file("_H", ".h", file_name)
|
||||
extras("_H", ".h", file_name)
|
||||
print("Successful creation of " .. file_name .. ".h")
|
||||
end
|
||||
if lang == "cpp" then
|
||||
aux_file("_HPP", ".hpp", file_name)
|
||||
extras("_HPP", ".hpp", file_name)
|
||||
print("Successful creation of " .. file_name .. ".hpp")
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user