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:
7
UltiSnips/brainfuck.snippets
Normal file
7
UltiSnips/brainfuck.snippets
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
snippet copy_1_2_w3 "Copy current cell modifying cells +1,+2"
|
||||||
|
Copy (from) (to) (with): >[-]>[-]<<[->+>+<<]>>[-<<+>>]<<
|
||||||
|
endsnippet
|
||||||
|
|
||||||
|
snippet add_1_2 "Add from 1 to 2"
|
||||||
|
Add (from) (to): [->+<]>
|
||||||
|
endsnippet
|
||||||
@@ -75,7 +75,18 @@ if t[19] == "y":
|
|||||||
t[19] = "Created!"
|
t[19] = "Created!"
|
||||||
if t[20] == "y":
|
if t[20] == "y":
|
||||||
system(f"git init > /dev/null")
|
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
|
$0
|
||||||
endsnippet
|
endsnippet
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user