Skip to content

Commit

Permalink
refactor: remove uncessary syn keyword for delimiter highlighting
Browse files Browse the repository at this point in the history
See #623 (comment)

> I don't think we need this. `syn` is used for old Vim syntax highlighting.
  • Loading branch information
PriceHiller committed Nov 2, 2023
1 parent b8c4ece commit 37a9e42
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lua/orgmode/colors/markup_highlighter.lua
Original file line number Diff line number Diff line change
Expand Up @@ -442,9 +442,8 @@ local function apply(namespace, bufnr, line_index)
end

local function setup()
for delimiter, marker in pairs(markers) do
for _, marker in pairs(markers) do
vim.cmd(string.format(marker.hl_cmd, marker.hl_name))
vim.cmd(string.format('syn keyword %s_delimiter %s', marker.hl_name, delimiter))
vim.cmd(string.format(marker.hl_cmd, marker.hl_name .. '_delimiter'))
end
vim.cmd('hi def link org_hyperlink Underlined')
Expand Down

0 comments on commit 37a9e42

Please sign in to comment.