nvim: misc changes

- properly don't overwrite clipboard on s or c in visual mode
- added template for typst
- makefile now compiles with c++20
This commit is contained in:
dogeystamp 2023-05-29 21:24:33 -04:00
parent 25b1d0fd0c
commit e96610bacb
Signed by: dogeystamp
GPG Key ID: 7225FE3592EFFA38
3 changed files with 12 additions and 1 deletions

View File

@ -23,7 +23,9 @@ set lazyredraw nocursorline ttyfast
set clipboard=unnamedplus
" when using c or s, do not overwrite clipboard
nnoremap c "-c
vnoremap c "-c
nnoremap s "-s
vnoremap s "-s
let mapleader = ","

View File

@ -2,7 +2,7 @@
~/.cache/termdebug/bin/%: %.cpp
mkdir -p ~/.cache/termdebug/bin/
$(LINK.cpp) -g -Wall -Wpedantic $^ $(LOADLIBES) $(LDLIBS) -o $@
$(LINK.cpp) -g -Wall -Wpedantic -std=c++20 $^ $(LOADLIBES) $(LDLIBS) -o $@
~/.cache/termdebug/bin/%: %.c
mkdir -p ~/.cache/termdebug/bin/

View File

@ -8,6 +8,15 @@ snippet problem "template for problem notes" bi
endsnippet
snippet contest "template for contest problems" bi
#import "../../templates/contest.typ": template, source_code, status
#show: template.with(
title: "$1",
stat: "${2:incomplete}",
)
endsnippet
snippet algs "template for compsci notes" bi
#import "../templates/algs.typ": template, source_code
#show: template.with(