Skip to content

Commit

Permalink
chore: set highlighting via nvim lua API
Browse files Browse the repository at this point in the history
  • Loading branch information
frankroeder committed Sep 23, 2024
1 parent 1dc77f1 commit 7a99e9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/parrot/response_handler.lua
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ function ResponseHandler:new(queries, buffer, window, line, first_undojoin, pref
self.skip_first_undojoin = not first_undojoin

self.hl_handler_group = "PrtHandlerStandout"
vim.cmd("highlight default link " .. self.hl_handler_group .. " CursorLine")
vim.api.nvim_set_hl(0, self.hl_handler_group, { link = "CursorLine" })

self.ns_id = vim.api.nvim_create_namespace("PrtHandler_" .. utils.uuid())
self.ex_id = vim.api.nvim_buf_set_extmark(self.buffer, self.ns_id, self.first_line, 0, {
Expand Down

0 comments on commit 7a99e9e

Please sign in to comment.