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