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()