Merge
This commit is contained in:
commit
51cb8a4210
|
@ -49,4 +49,15 @@ module ${1:MODULE_NAME} (
|
|||
);
|
||||
$0
|
||||
endmodule // $1
|
||||
|
||||
snippet begin "begin - end" iA
|
||||
begin
|
||||
$1
|
||||
end
|
||||
$0
|
||||
endsnippet
|
||||
|
||||
snippet def "Definition/Constant" b
|
||||
\`define ${1:NAME} ${2:VALUE}
|
||||
$0
|
||||
endsnippet
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
transgender
|
||||
python
|
Binary file not shown.
|
@ -0,0 +1 @@
|
|||
t0
|
Binary file not shown.
|
@ -75,4 +75,23 @@ endfunction
|
|||
|
||||
nnoremap <M-u> :call Update_Sys()<CR>
|
||||
|
||||
nnoremap <C-b> :!lualatex % < /dev/null<CR>
|
||||
" Call build function
|
||||
function! Build()
|
||||
let l:filetype = &filetype
|
||||
|
||||
if l:filetype == 'c' || l:filetype == 'cpp' || l:filetype == 'h' || l:filetype == 'hpp'
|
||||
execute 'make'
|
||||
elseif l:filetype == 'py' || l:filetype == 'python'
|
||||
execute '!python3 %'
|
||||
elseif l:filetype == 'tex'
|
||||
execute '!lualatex % < /dev/null'
|
||||
elseif l:filetype == 'rs'
|
||||
execute 'cargo run'
|
||||
elseif l:filetype == 'S'
|
||||
execute 'make'
|
||||
else
|
||||
echo "Unsupported file type: " . l:filetype
|
||||
endif
|
||||
endfunction
|
||||
|
||||
nnoremap <C-b> :call Build()<CR>
|
||||
|
|
Loading…
Reference in New Issue