From 71cff08620cb68d5da3f296067eaacb791c5ca26 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Thu, 2 Nov 2023 13:08:49 -0500 Subject: [PATCH] feat(nvim): add highlights for org delimiters --- dots/.config/nvim/lua/plugins/configs/org-mode.lua | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/dots/.config/nvim/lua/plugins/configs/org-mode.lua b/dots/.config/nvim/lua/plugins/configs/org-mode.lua index 0804bc45..943c2abe 100644 --- a/dots/.config/nvim/lua/plugins/configs/org-mode.lua +++ b/dots/.config/nvim/lua/plugins/configs/org-mode.lua @@ -46,6 +46,14 @@ return { config_path = "$HOME/.config/emacs/init.el" } }) + + vim.api.nvim_set_hl(0, "org_code", { link = "@field" }) + vim.api.nvim_set_hl(0, "org_code_delimiter", { link = "@string.special" }) + vim.api.nvim_set_hl(0, "org_verbatim_delimiter", { link = "@string.special" }) + vim.api.nvim_set_hl(0, "org_italic_delimiter", { link = "@string.special" }) + vim.api.nvim_set_hl(0, "org_bold_delimiter", { link = "@string.special" }) + vim.api.nvim_set_hl(0, "org_underline_delimiter", { link = "@string.special" }) + vim.api.nvim_set_hl(0, "org_strikethrough_delimiter", { link = "@string.special" }) if vim.bo.filetype == "org" then vim.cmd.edit() end