From d871d6fe75d3f820a5e6c2caf0b90d8c4485f446 Mon Sep 17 00:00:00 2001 From: Rob Watson Date: Tue, 27 Jul 2021 09:05:29 +0200 Subject: [PATCH] Update nvimrc --- nvimrc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/nvimrc b/nvimrc index 39dc708..3508b70 100644 --- a/nvimrc +++ b/nvimrc @@ -185,7 +185,7 @@ _G._build_test_cmd = function() local bufnr = vim.call("bufnr", "%") local filetype = vim.call("getbufvar", bufnr, "&filetype") if filetype == "" then - print("cannot build test command for filetype:", filetype) + vim.api.nvim_err_writeln("cannot build test command for filetype:" .. filetype) return nil end @@ -198,11 +198,11 @@ _G._build_test_cmd = function() path = path:gsub("/app/", "/spec/"):gsub([[.rb$]], "_spec.rb") end - return "bundle exec rspec --format=progress " .. path + return "zeus rspec --format=progress --no-profile " .. path elseif filetype == "go" then return "go test " .. path:gsub("^(.*)/(.*go)$", "%1/...") else - print("filetype not supported:", filetype) + vim.api.nvim_err_writeln("filetype not supported: " .. filetype) return nil end end @@ -303,8 +303,8 @@ function! OpenGitURLToLineOrRange() range endif endfunction +nnoremap as :Git nnoremap ab :Git blame -nnoremap as :Gstatus nnoremap ac :Commits nnoremap ah :GitGutterLineHighlightsToggle nnoremap aY :call CopyGitURLToLineOrRange()