29 lines
615 B
Lua
29 lines
615 B
Lua
-- print 'Custom C++ snippets loaded!'
|
|
|
|
local ls = require 'luasnip'
|
|
local s = ls.snippet
|
|
local t = ls.text_node
|
|
|
|
ls.add_snippets('cpp', {
|
|
s('cpptemplate', {
|
|
t {
|
|
'#include <bits/stdc++.h>',
|
|
'#define fi first',
|
|
'#define se second',
|
|
'using namespace std;',
|
|
'typedef long long ll;',
|
|
'typedef unsigned long long ull;',
|
|
'const int N = 1E6 + 3;',
|
|
'const ll MOD = 1E9 + 7;',
|
|
'',
|
|
'int main() {',
|
|
' ios_base::sync_with_stdio(false);',
|
|
' cin.tie(0);',
|
|
' cout.tie(0);',
|
|
'',
|
|
' cout << "edhlii\\n";',
|
|
'}',
|
|
},
|
|
}),
|
|
})
|