From cfe87ecfaea6c285f7151fbdcd665a62cfa1c534 Mon Sep 17 00:00:00 2001 From: thek4n Date: Tue, 20 Feb 2024 10:53:39 +0300 Subject: [PATCH] typo(nvim): map run script --- home/user/.config/nvim/lua/base/mappings/run-scripts.lua | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/home/user/.config/nvim/lua/base/mappings/run-scripts.lua b/home/user/.config/nvim/lua/base/mappings/run-scripts.lua index 245e7cf..5022da5 100644 --- a/home/user/.config/nvim/lua/base/mappings/run-scripts.lua +++ b/home/user/.config/nvim/lua/base/mappings/run-scripts.lua @@ -16,7 +16,7 @@ local function map_filetype(filetype, key, cmd) ) end --- map_filename('manpage', 'rr', 'man -P cat -l %') -- fix (by filenamej) +-- map_filename('manpage', 'rr', 'man -P cat -l %') -- fix (by filename) map_filetype('*', 'rs', '$(head -1 % | cut -c 3-) %') @@ -24,10 +24,8 @@ map_filetype('python', 'rr', 'python3 %') map_filetype('python', 'rt', 'pytest %') map_filetype('go', 'rr', 'go run') --- map_filetype('go', 'rf', 'go fmt') -- fix (without open terminal) map_filetype('rust', 'rr', 'cargo run') --- map_filetype('rust', 'rf', 'cargo fmt -p') -- fix (without open terminal) map_filetype('c', 'rr', 'gcc % && ./a.out') map_filetype('cpp', 'rr', 'g++ % && ./a.out') \ No newline at end of file