Makefile snippet for gccvarset to create clangd project file
Some checks failed
Test Neovim config on push / build (ubuntu-20.04) (push) Failing after 32s

This commit is contained in:
nichkara
2025-10-12 10:06:50 +02:00
parent bfc3c57d19
commit ead1e9baa8
2 changed files with 19 additions and 1 deletions

View File

@@ -75,7 +75,18 @@ if t[19] == "y":
t[19] = "Created!"
if t[20] == "y":
system(f"git init > /dev/null")
t[20] = "Initialized repository!"`
t[20] = "Initialized repository!"``!p
from os import system
if "cl" in t[2].split(' ') and t[19] == "y":
with open(".clangd", "w") as w:
config = f"""
CompileFlags:
Add: [{t[8].split(' ').join(', ')}]
Remove: []
Compiler: {t[3]}
""" w.write(config)
`
$0
endsnippet