From 43da58eba3a49835b59f377afa76f73faef100f0 Mon Sep 17 00:00:00 2001 From: dogeystamp Date: Sat, 30 Sep 2023 12:01:23 -0400 Subject: [PATCH] nvim: make paths less brittle --- src/.config/nvim/makefile | 4 ++-- src/.config/nvim/vimspector.vim | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/.config/nvim/makefile b/src/.config/nvim/makefile index 8c93fbd..2c5fa38 100644 --- a/src/.config/nvim/makefile +++ b/src/.config/nvim/makefile @@ -1,9 +1,9 @@ # makefile for compiling individual files from vim ~/.cache/termdebug/bin/%: %.cpp - mkdir -p ~/.cache/termdebug/bin/ + @mkdir -p $(@D) $(LINK.cpp) -g -Wall -Wpedantic -std=c++20 $^ $(LOADLIBES) $(LDLIBS) -o $@ ~/.cache/termdebug/bin/%: %.c - mkdir -p ~/.cache/termdebug/bin/ + @mkdir -p $(@D) $(LINK.c) -g -Wall -Wpedantic $^ $(LOADLIBES) $(LDLIBS) -o $@ diff --git a/src/.config/nvim/vimspector.vim b/src/.config/nvim/vimspector.vim index dc25c5c..439fff6 100644 --- a/src/.config/nvim/vimspector.vim +++ b/src/.config/nvim/vimspector.vim @@ -29,7 +29,7 @@ nnoremap de :call vimspector#Reset() " write clipboard into input file function WriteInput() let inputfile=$HOME .. "/.cache/termdebug/input/" .. expand("%:r") - echo "Written input to '" .. inputfile .. "'." + echo "Input written to '" .. inputfile .. "'." call writefile(getreg('+', 1, 1), inputfile) endfunction nnoremap rw :call WriteInput()