mirror of
https://mzte.de/git/LordMZTE/dotfiles.git
synced 2024-12-14 03:03:49 +01:00
upgrade to tsrainbow2
This commit is contained in:
parent
96fb7c8dc6
commit
2ca30e4948
3 changed files with 21 additions and 9 deletions
|
@ -24,15 +24,14 @@ configs.setup {
|
|||
|
||||
rainbow = {
|
||||
enable = true,
|
||||
extended_mode = true,
|
||||
|
||||
colors = {
|
||||
"#ff00be",
|
||||
"#ff7e00",
|
||||
"#64d200",
|
||||
"#00e6b6",
|
||||
"#00e1ff",
|
||||
"#9598ff",
|
||||
hlgroups = {
|
||||
"TSRainbow1",
|
||||
"TSRainbow2",
|
||||
"TSRainbow3",
|
||||
"TSRainbow4",
|
||||
"TSRainbow5",
|
||||
"TSRainbow6",
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
12
mzte-nv/conf/lua/pluginconf/tsrainbow2.lua
Normal file
12
mzte-nv/conf/lua/pluginconf/tsrainbow2.lua
Normal file
|
@ -0,0 +1,12 @@
|
|||
local colors = {
|
||||
"#ff00be",
|
||||
"#ff7e00",
|
||||
"#64d200",
|
||||
"#00e6b6",
|
||||
"#00e1ff",
|
||||
"#9598ff",
|
||||
}
|
||||
|
||||
for i, c in ipairs(colors) do
|
||||
vim.api.nvim_set_hl(0, "TSRainbow" .. i, { fg = c })
|
||||
end
|
|
@ -111,8 +111,9 @@ require("packer").startup(function(use)
|
|||
|
||||
use "windwp/nvim-ts-autotag"
|
||||
use {
|
||||
"p00f/nvim-ts-rainbow",
|
||||
"HiPhish/nvim-ts-rainbow2",
|
||||
requires = "nvim-treesitter/nvim-treesitter",
|
||||
config = pconf "tsrainbow2",
|
||||
}
|
||||
|
||||
use {
|
||||
|
|
Loading…
Reference in a new issue