scorpio 1 year ago
parent
commit
5739e7b301
4 changed files with 27 additions and 16 deletions
  1. 1 0
      init.lua
  2. 8 0
      lua/plugin-config/colorizer.lua
  3. 6 4
      lua/plugins.lua
  4. 12 12
      plugin/packer_compiled.lua

+ 1 - 0
init.lua

@@ -22,6 +22,7 @@ require("plugin-config.gitsigns")
 require("plugin-config.eslint")
 require("plugin-config.indent-blankline")
 require("plugin-config.nvim-notify")
+require("plugin-config.colorizer")
 -- 内置LSP (新增)
 require("lsp.setup")
 require("lsp.config.mason")

+ 8 - 0
lua/plugin-config/colorizer.lua

@@ -0,0 +1,8 @@
+local status, colorizer = pcall(require, "colorizer")
+if not status then
+  return
+end
+
+colorizer.setup({
+  "*",
+})

+ 6 - 4
lua/plugins.lua

@@ -82,10 +82,10 @@ packer.startup({
     })
     use("nvim-treesitter/nvim-tree-docs")
     --------------------- LSP --------------------
-    -- use {
-    --     'neoclide/coc.nvim',
-    --     branch = 'release'
-    -- }
+    -- use({
+    --   "neoclide/coc.nvim",
+    --   branch = "release",
+    -- })
     -- mason
     use({
       "williamboman/mason.nvim",
@@ -186,6 +186,8 @@ packer.startup({
         require("plugin-config.fidget")
       end,
     })
+    -- 颜色高亮
+    use("norcalli/nvim-colorizer.lua")
   end,
   config = {
     -- 并发数限制

+ 12 - 12
plugin/packer_compiled.lua

@@ -352,26 +352,26 @@ time([[Defining packer_plugins]], false)
 time([[Config for nvim-autopairs]], true)
 try_loadstring("\27LJ\2\n@\0\0\3\0\3\0\a6\0\0\0'\2\1\0B\0\2\0029\0\2\0004\2\0\0B\0\2\1K\0\1\0\nsetup\19nvim-autopairs\frequire\0", "config", "nvim-autopairs")
 time([[Config for nvim-autopairs]], false)
--- Config for: fidget.nvim
-time([[Config for fidget.nvim]], true)
-try_loadstring("\27LJ\2\n4\0\0\3\0\2\0\0046\0\0\0'\2\1\0B\0\2\1K\0\1\0\25plugin-config.fidget\frequire\0", "config", "fidget.nvim")
-time([[Config for fidget.nvim]], false)
--- Config for: Comment.nvim
-time([[Config for Comment.nvim]], true)
-try_loadstring("\27LJ\2\n5\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\fComment\frequire\0", "config", "Comment.nvim")
-time([[Config for Comment.nvim]], false)
--- Config for: nvim-notify
-time([[Config for nvim-notify]], true)
-try_loadstring("\27LJ\2\n9\0\0\3\0\2\0\0046\0\0\0'\2\1\0B\0\2\1K\0\1\0\30plugin-config.nvim-notify\frequire\0", "config", "nvim-notify")
-time([[Config for nvim-notify]], false)
 -- Config for: hop.nvim
 time([[Config for hop.nvim]], true)
 try_loadstring("\27LJ\2\nU\0\0\3\0\4\0\a6\0\0\0'\2\1\0B\0\2\0029\0\2\0005\2\3\0B\0\2\1K\0\1\0\1\0\1\tkeys\28etovxqpdygfblzhckisuran\nsetup\bhop\frequire\0", "config", "hop.nvim")
 time([[Config for hop.nvim]], false)
+-- Config for: fidget.nvim
+time([[Config for fidget.nvim]], true)
+try_loadstring("\27LJ\2\n4\0\0\3\0\2\0\0046\0\0\0'\2\1\0B\0\2\1K\0\1\0\25plugin-config.fidget\frequire\0", "config", "fidget.nvim")
+time([[Config for fidget.nvim]], false)
 -- Config for: nvim-treesitter
 time([[Config for nvim-treesitter]], true)
 try_loadstring("\27LJ\2\n=\0\0\3\0\2\0\0046\0\0\0'\2\1\0B\0\2\1K\0\1\0\"plugin-config.nvim-treesitter\frequire\0", "config", "nvim-treesitter")
 time([[Config for nvim-treesitter]], false)
+-- Config for: nvim-notify
+time([[Config for nvim-notify]], true)
+try_loadstring("\27LJ\2\n9\0\0\3\0\2\0\0046\0\0\0'\2\1\0B\0\2\1K\0\1\0\30plugin-config.nvim-notify\frequire\0", "config", "nvim-notify")
+time([[Config for nvim-notify]], false)
+-- Config for: Comment.nvim
+time([[Config for Comment.nvim]], true)
+try_loadstring("\27LJ\2\n5\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\fComment\frequire\0", "config", "Comment.nvim")
+time([[Config for Comment.nvim]], false)
 
 _G._packer.inside_compile = false
 if _G._packer.needs_bufread == true then