Cleanup the config and colorizer added

This commit is contained in:
2026-06-27 17:18:56 +02:00
parent df067c3842
commit acd130badc
5 changed files with 44 additions and 16 deletions
+14 -10
View File
@@ -164,14 +164,9 @@ return packer.startup(function(use)
"akinsho/bufferline.nvim",
tag = "*",
requires = "nvim-tree/nvim-web-devicons",
-- vim.opt.termguicolors = true
config = function()
-- require("bufferline").setup{}
require("mzpx.plug.bufferline")
end
}
-- --------------------------------------------------------------------------------------------
@@ -185,11 +180,13 @@ return packer.startup(function(use)
-- --------------------------------------------------------------------------------------------
-- nvim-treesitter - mz
-- --------------------------------------------------------------------------------------------
-- use {
-- 'nvim-treesitter/nvim-treesitter',
-- branch = "master",
-- run = ':TSUpdate', -- This automatically updates parsers on install/update
-- }
use {
'nvim-treesitter/nvim-treesitter',
run = function()
local ts_update = require('nvim-treesitter.install').update({ with_sync = true })
ts_update()
end,
}
-- --------------------------------------------------------------
-- render-markdown - mz
@@ -236,6 +233,13 @@ return packer.startup(function(use)
end
}
use {
"norcalli/nvim-colorizer.lua",
config = function()
require( "mzpx.plug.nvim-colorizer" )
end
}
-- --------------------------------------------------------------------------------------------
-- Automatically set up your configuration after cloning packer.nvim.
-- Put this at the end after all plugins.
+2 -1
View File
@@ -12,7 +12,8 @@ local custom_highlight =
vim.api.nvim_set_hl( 0, "Comment", { fg = "#808080", italic = false })
vim.api.nvim_set_hl( 0, "Function", { fg = "#82aaff", italic = false })
vim.api.nvim_set_hl( 0, "CursorLineNr", { fg = "#82aaff", italic = false })
vim.api.nvim_set_hl( 0, "Delimiter", { fg = "#ff0000", italic = false })
-- vim.api.nvim_set_hl( 0, "Delimiter", { fg = "#ff0000", italic = false })
vim.api.nvim_set_hl( 0, "Delimiter", { fg = "#aaaaaa", italic = false })
end,
group = custom_highlight,
+17
View File
@@ -0,0 +1,17 @@
require'colorizer'.setup(
{'*';},
{
RGB = true; -- #RGB hex codes
RRGGBB = true; -- #RRGGBB hex codes
names = true; -- "Name" codes like Blue
RRGGBBAA = false; -- #RRGGBBAA hex codes
rgb_fn = false; -- CSS rgb() and rgba() functions
hsl_fn = false; -- CSS hsl() and hsla() functions
css = false; -- Enable all CSS features: rgb_fn, hsl_fn, names, RGB, RRGGBB
css_fn = false; -- Enable all CSS *functions*: rgb_fn, hsl_fn
-- Available modes: foreground, background
mode = 'background'; -- Set the display mode.
}
)
+2 -1
View File
@@ -16,7 +16,8 @@ require('nvim-treesitter.configs').setup {
highlight = {
enable = true, -- false will disable the whole extension
additional_vim_regex_highlighting = false,
disable = { "" }
additional_vim_regex_highlighting = ture,
},
indent = {
+5
View File
@@ -4,3 +4,8 @@ after switching to another branch, the following folders must be deleted
- delete `%XDG_CACHE_HOME%\nvim` folder
- delete `%XDG_CONFIG_HOME%\nvim\plugin` folder
- delete `%XDG_DATA_HOME%\nvim-data` folder
## For test
```sh
ls /etc/ppp/
```