]> git.rmz.io Git - dotfiles.git/blobdiff - nvim/lua/plugins/editor.lua
nvim: remove vim-symlink
[dotfiles.git] / nvim / lua / plugins / editor.lua
index b8bd5aa77c0e3105b8e0c0aab0861b4343c339f0..7c35330f3e5ec7f51f15424bfad7eaf842f05fbd 100644 (file)
@@ -83,6 +83,17 @@ return {
     },
     opts = {}
   },
+  { "echasnovski/mini.hipatterns",  -- highlight hex colours and other matched words
+    event = { "BufReadPost", "BufNewFile", "BufWritePre" },
+    opts = function()
+      local hi = require("mini.hipatterns")
+      return {
+        highlighters = {
+          hex_color = hi.gen_highlighter.hex_color({ priority = 2000 }),
+        },
+      }
+    end,
+  },
   { "folke/flash.nvim",
     -- Flash enhances the built-in search functionality by showing labels
     -- at the end of each match, letting you quickly jump to a specific