Compare commits

..

No commits in common. "676a19c14ba581714795a1478aceb68ae7ee5505" and "aad07e6abb5361739c17b00a958743a566ab87cf" have entirely different histories.

5 changed files with 16 additions and 41 deletions

View File

@ -23,5 +23,4 @@ call digraph_setlist([
call digraph_setlist([ call digraph_setlist([
\["++", '✝'], \["++", '✝'],
\["+-", '†'], \["+-", '†'],
\["m-", '—'],
\]) \])

View File

@ -44,6 +44,8 @@ nnoremap <silent> <esc> :noh<return><esc>
" shortcuts to type symbols easier " shortcuts to type symbols easier
source $XDG_CONFIG_HOME/nvim/digraphs.vim source $XDG_CONFIG_HOME/nvim/digraphs.vim
vnoremap <silent> K :'<,'>Evaluate<cr>
" tab, window management " tab, window management
set splitbelow splitright set splitbelow splitright
nnoremap <C-j> <C-w>w nnoremap <C-j> <C-w>w

View File

@ -1,9 +1,9 @@
# makefile for compiling individual files from vim # makefile for compiling individual files from vim
~/.cache/termdebug/bin/%: %.cpp ~/.cache/termdebug/%: %.cpp
mkdir -p ~/.cache/termdebug/bin/ mkdir -p ~/.cache/termdebug/
$(LINK.cpp) -g -Wall -Wpedantic $^ $(LOADLIBES) $(LDLIBS) -o $@ $(LINK.cpp) -g -Wall -Wpedantic $^ $(LOADLIBES) $(LDLIBS) -o $@
~/.cache/termdebug/bin/%: %.c ~/.cache/termdebug/%: %.c
mkdir -p ~/.cache/termdebug/bin/ mkdir -p ~/.cache/termdebug/
$(LINK.c) -g -Wall -Wpedantic $^ $(LOADLIBES) $(LDLIBS) -o $@ $(LINK.c) -g -Wall -Wpedantic $^ $(LOADLIBES) $(LDLIBS) -o $@

View File

@ -15,7 +15,7 @@ function Compile()
call win_gotoid(g:vimspector_session_windows.code) call win_gotoid(g:vimspector_session_windows.code)
endif endif
w w
execute "make ~/.cache/termdebug/bin/" .. expand("%:r") .. " -f ~/.config/nvim/makefile" execute "make ~/.cache/termdebug/" .. expand("%:r") .. " -f ~/.config/nvim/makefile"
endfunction endfunction
nnoremap <silent> <leader>dc :call Compile()<cr> nnoremap <silent> <leader>dc :call Compile()<cr>
@ -23,8 +23,8 @@ nnoremap <silent> <leader>dc :call Compile()<cr>
nnoremap <silent> <leader>dqf :tab cope<cr> nnoremap <silent> <leader>dqf :tab cope<cr>
nnoremap <silent> <leader>df :tabNext<cr> nnoremap <silent> <leader>df :tabNext<cr>
nnoremap <silent> <leader>dd :call vimspector#Launch()<cr> nnoremap <silent> <leader>dd :call vimspector#Launch()
nnoremap <silent> <leader>de :call vimspector#Reset()<cr> nnoremap <silent> <leader>de :call vimspector#Reset()
" write clipboard into input file " write clipboard into input file
function WriteInput() function WriteInput()
@ -34,15 +34,15 @@ function WriteInput()
endfunction endfunction
nnoremap <silent> <leader>rw :call WriteInput()<cr> nnoremap <silent> <leader>rw :call WriteInput()<cr>
" feed from input file into program stdin " start from input file
function RunInput() function RunInput()
let l:winid = win_getid() call vimspector#Stop()
call vimspector#Restart()
call win_gotoid(g:vimspector_session_windows.code) call win_gotoid(g:vimspector_session_windows.code)
let l:inputfile=$HOME .. "/.cache/termdebug/input/" .. expand("%:r") let inputfile=$HOME .. "/.cache/termdebug/input/" .. expand("%:r")
let @x = join(readfile(l:inputfile), "\n") .. "\n\n" let @x = join(readfile(inputfile), "\n") .. "\n\n"
call win_gotoid(g:vimspector_session_windows.terminal) call win_gotoid(g:vimspector_session_windows.terminal)
normal G"xp normal G"xp
call win_gotoid(l:winid)
endfunction endfunction
nnoremap <silent> <leader>ri :call RunInput()<cr> nnoremap <silent> <leader>ri :call RunInput()<cr>
@ -50,31 +50,8 @@ nnoremap <silent> <leader>ri :call RunInput()<cr>
nnoremap <silent> <leader>rs :call vimspector#Restart()<cr> nnoremap <silent> <leader>rs :call vimspector#Restart()<cr>
nnoremap <silent> <leader>rr :call vimspector#Stop()<cr> nnoremap <silent> <leader>rr :call vimspector#Stop()<cr>
nnoremap <silent> <leader>rf :call vimspector#Continue()<cr> nnoremap <silent> <leader>rf :call vimspector#Continue()<cr>
" codelldb breaks if you just restart directly nnoremap <silent> <c-p> :vimspector#StepInto()<cr>
func VimspectorHardRestart() nnoremap <silent> <c-n> :vimspector#StepOver()<cr>
call vimspector#Stop()
sleep 100m
call vimspector#Restart()
endfunc
nnoremap <silent> <leader>rt :call VimspectorHardRestart()<cr>
nnoremap <silent> <c-p> :call vimspector#StepInto()<cr>
nnoremap <silent> <c-n> :call vimspector#StepOver()<cr>
" breakpoints " breakpoints
nnoremap <silent> <leader>dsf :call vimspector#ToggleBreakpoint()<cr> nnoremap <silent> <leader>dsf :call vimspector#ToggleBreakpoint()<cr>
nnoremap <silent> <leader>dsF <Plug>VimspectorToggleConditionalBreakpoint
nnoremap <silent> <leader>dsc :call vimspector#ClearBreakpoints()<cr>
" watches
au BufEnter vimspector.Watches* nnoremap <silent> <buffer> dd :call vimspector#DeleteWatch()<cr>
func VimspectorEval()
let l:winid = win_getid()
normal gv"xy
call win_gotoid(g:vimspector_session_windows.output)
execute "normal! ip " . @x . "\n\<Esc>"
call win_gotoid(l:winid)
endfunc
vnoremap <silent> K :call VimspectorEval()<cr>
nnoremap <silent> K <Plug>VimspectorBalloonEval

View File

@ -11,15 +11,12 @@ REDDIT="lr.mint.lgbt"
TWITTER="nitter.net" TWITTER="nitter.net"
# genius lyrics # genius lyrics
GENIUS="sing.whatever.social" GENIUS="sing.whatever.social"
# fandom the wiki
FANDOM="breezewiki.com"
YOUTUBE="yewtu.be" YOUTUBE="yewtu.be"
LINK="$(printf "%s" "$QUTE_URL" | sed \ LINK="$(printf "%s" "$QUTE_URL" | sed \
-e "s/www.reddit.com/$REDDIT/g" \ -e "s/www.reddit.com/$REDDIT/g" \
-e "s/twitter.com/$TWITTER/g" \ -e "s/twitter.com/$TWITTER/g" \
-e "s/genius.com/$GENIUS/g" \ -e "s/genius.com/$GENIUS/g" \
-e "s/fandom.com/$FANDOM/g" \
-e "s/youtube.com/$YOUTUBE/g")" -e "s/youtube.com/$YOUTUBE/g")"
echo "open $1 $LINK" >> "$QUTE_FIFO" echo "open $1 $LINK" >> "$QUTE_FIFO"