Skip to content

Commit

Permalink
Change custom highlight group option
Browse files Browse the repository at this point in the history
  • Loading branch information
mogulla3 committed Sep 30, 2022
1 parent f70d77a commit 8329941
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lua/rspec/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ function M.setup(user_config)
vim.g.last_command_stdout = nil
vim.g.last_command_stderr = nil

vim.api.nvim_set_hl(0, "RSpecPassed", { default = true, link = "DiffAdd" })
vim.api.nvim_set_hl(0, "RSpecFailed", { default = true, link = "DiffDelete" })
vim.api.nvim_set_hl(0, "RSpecAborted", { default = true, link = "DiffDelete" })
vim.api.nvim_set_hl(0, "RSpecPassed", { bg = "#005f00", fg = "#87d700" })
vim.api.nvim_set_hl(0, "RSpecFailed", { bg = "#5f0000", fg = "#eb96c4" })
vim.api.nvim_set_hl(0, "RSpecAborted", { bg = "#5f0000", fg = "#eb96c4" })

vim.cmd("command! RSpecCurrentFile lua require('rspec').run_current_file()<CR>")
vim.cmd("command! RSpecNearest lua require('rspec').run_current_file({ only_nearest = true })<CR>")
Expand Down

0 comments on commit 8329941

Please sign in to comment.