wip
This commit is contained in:
@@ -27,7 +27,6 @@ function M.setup(opts)
|
||||
vim.api.nvim_set_hl(0, name, o)
|
||||
end
|
||||
end
|
||||
|
||||
define("PolydevNormal", {
|
||||
fg = vim.api.nvim_get_hl(0, { name = "NormalFloat", link = true }).fg,
|
||||
bg = vim.api.nvim_get_hl(0, { name = "Normal", link = true }).bg,
|
||||
|
||||
@@ -139,9 +139,10 @@ int main() {
|
||||
]])
|
||||
utils.write_file({ full_project_root, "CMakeLists.txt" }, string.format([[
|
||||
cmake_minimum_required(VERSION 3.16)
|
||||
project(%s)
|
||||
set(CMAKE_C_STANDARD 23)
|
||||
set(CMAKE_C_STANDARD_REQUIRED ON)
|
||||
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
||||
project(%s)
|
||||
include_directories(include)
|
||||
|
||||
set(SOURCES
|
||||
@@ -154,7 +155,6 @@ add_executable(%s ${SOURCES})
|
||||
# include_directories(${CURSES_INCLUDE_DIR})
|
||||
# target_link_libraries(%s ${CURSES_LIBRARIES})
|
||||
|
||||
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
||||
]], project_name, project_name, project_name))
|
||||
|
||||
local gitignore = { "build/", ".cache/" }
|
||||
@@ -256,10 +256,11 @@ M.extras = {
|
||||
if lang == "c" then
|
||||
extras("_H", ".h", file_name)
|
||||
print("Successful creation of " .. file_name .. ".h")
|
||||
end
|
||||
if lang == "cpp" then
|
||||
elseif lang == "cpp" then
|
||||
extras("_HPP", ".hpp", file_name)
|
||||
print("Successful creation of " .. file_name .. ".hpp")
|
||||
else
|
||||
print("Extras language is not found: enter cpp or c")
|
||||
end
|
||||
end
|
||||
}
|
||||
|
||||
@@ -280,6 +280,8 @@ function M.manager(project_root)
|
||||
cwd = entry.full_path
|
||||
vim.cmd("cd " .. cwd)
|
||||
update_screen()
|
||||
else
|
||||
print("Error")
|
||||
end
|
||||
end, { buffer = buf })
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user