Skip to content

Commit

Permalink
fix: use nvim_set_hl instead of highlight.link
Browse files Browse the repository at this point in the history
  • Loading branch information
barklan authored and gbprod committed Jul 10, 2022
1 parent 095e63e commit a2307c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/substitute.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ substitute.state = {
function substitute.setup(options)
substitute.config = config.setup(options)

vim.highlight.link("SubstituteRange", "Search")
vim.highlight.link("SubstituteExchange", "Search")
vim.api.nvim_set_hl(0, "SubstituteRange", { link = "Search" })
vim.api.nvim_set_hl(0, "SubstituteExchange", { link = "Search" })
end

function substitute.operator(options)
Expand Down

0 comments on commit a2307c3

Please sign in to comment.