From bdbe1ed5ba694822ce47f3c915a70d6c3ffb4066 Mon Sep 17 00:00:00 2001
From: David Luevano Alvarado <david@luevano.xyz>
Date: Mon, 21 Oct 2024 05:48:36 -0600
Subject: feat: better nord theme and markdown hl

---
 lua/plugins/headlines.lua | 34 ----------------------------------
 lua/plugins/markdown.lua  |  8 ++++++++
 lua/plugins/theme.lua     | 35 ++++++++++++++++++++++++-----------
 3 files changed, 32 insertions(+), 45 deletions(-)
 delete mode 100644 lua/plugins/headlines.lua
 create mode 100644 lua/plugins/markdown.lua

diff --git a/lua/plugins/headlines.lua b/lua/plugins/headlines.lua
deleted file mode 100644
index 97d2c7f..0000000
--- a/lua/plugins/headlines.lua
+++ /dev/null
@@ -1,34 +0,0 @@
-return {
-  "lukas-reineke/headlines.nvim",
-  dependencies = "nvim-treesitter/nvim-treesitter",
-  opts = {
-    markdown = {
-      headline_highlights = {
-        "Headline1",
-        "Headline2",
-        "Headline3",
-        "Headline4",
-        "Headline5",
-        "Headline6",
-      },
-      codeblock_highlight = "CodeBlock",
-      dash_highlight = "Dash",
-      quote_highlight = "Quote",
-      bullet_highlights = {
-        -- "@text.title.1.marker.markdown",
-        -- "@text.title.2.marker.markdown",
-        -- "@text.title.3.marker.markdown",
-        -- "@text.title.4.marker.markdown",
-        -- "@text.title.5.marker.markdown",
-        -- "@text.title.6.marker.markdown",
-      },
-      bullets = {},
-      -- bullets = { "◉", "○", "✸", "✿" },
-      dash_string = "-",
-      quote_string = "┃",
-      fat_headlines = false,
-      fat_headline_upper_string = "▃",
-      fat_headline_lower_string = "🬂",
-    },
-  },
-}
diff --git a/lua/plugins/markdown.lua b/lua/plugins/markdown.lua
new file mode 100644
index 0000000..418d297
--- /dev/null
+++ b/lua/plugins/markdown.lua
@@ -0,0 +1,8 @@
+return {
+  'MeanderingProgrammer/render-markdown.nvim',
+  dependencies = {
+    'nvim-treesitter/nvim-treesitter',
+    'nvim-tree/nvim-web-devicons',
+  },
+  opts = {},
+}
diff --git a/lua/plugins/theme.lua b/lua/plugins/theme.lua
index 44d8e8d..1085034 100644
--- a/lua/plugins/theme.lua
+++ b/lua/plugins/theme.lua
@@ -1,20 +1,32 @@
 return {
   {
-    'shaunsingh/nord.nvim',
+    'gbprod/nord.nvim',
     lazy = false,
     priority = 1000,
     config = function()
-      vim.g.nord_contrast = true
-      vim.g.nord_borders = true
-      vim.g.nord_disable_background = false
-      vim.g.nord_cursorline_transparent = false
-      vim.g.nord_enable_sidebar_background = false
-      vim.g.nord_uniform_diff_background = true
-      vim.g.nord_italic = false
-      vim.g.nord_bold = false
+      require('nord').setup({
+        transparent = false, -- controled with below plugin 'xiyaowong/transparent.nvim'
+        terminal_colors = true,
+        diff = { mode = 'bg' },
+        borders = true,
+        errors = { mode = 'bg' },
+        search = { theme = 'vim' },
+        styles = {
+          -- Style to be applied to different syntax groups
+          -- Value is any valid attr-list value for `:help nvim_set_hl`
+          comments = { italic = true },
+          keywords = {},
+          functions = {},
+          variables = {},
+          -- To customize lualine/bufferline
+          bufferline = {
+            current = {},
+            modified = { italic = true },
+          },
+        },
+      })
 
-      require('nord').set()
-      -- vim.cmd.colorscheme = 'nord'
+      vim.cmd.colorscheme('nord')
     end,
   },
   {
@@ -24,6 +36,7 @@ return {
         extra_groups = {
           -- 'NormalFloat', -- plugins which have float panel such as Lazy, Mason, LspInfo
         },
+        exclude_groups = { 'CursorLine' },
       })
       vim.keymap.set('n', '<leader>tT', '<CMD>TransparentToggle<CR>', { desc = '[t]oggle [T]ransparency' })
     end,
-- 
cgit v1.2.3-70-g09d2