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
Some checks failed
Test Neovim config on push / build (ubuntu-20.04) (push) Failing after 32s
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user