🧠 Coding Features

- Remove Comment (use native feature)
- Make hlchunk colors dynamic
- Add Alternate to quickly switch between c and headers
This commit is contained in:
2024-07-15 18:45:26 -04:00
parent fde4226473
commit 965bf540d6
2 changed files with 28 additions and 7 deletions
+15 -7
View File
@@ -16,19 +16,23 @@ return {
"vim-scripts/AnsiEsc.vim",
lazy = true,
},
{
"numToStr/Comment.nvim",
config = function()
require("Comment").setup()
end,
},
{
"shellRaining/hlchunk.nvim",
config = function()
local cb = function()
if vim.g.colors_name == "tokyonight" then
return "#806d9c"
elseif vim.g.colors_name:find("catppuccin") then
local catpalette = require("catppuccin.palettes").get_palette()
return catpalette.rosewater
else
return "#90FDA9"
end
end
require("hlchunk").setup({
chunk = {
style = {
{ fg = "#90FDA9" },
{ fg = cb },
},
enable = true,
},
@@ -38,4 +42,8 @@ return {
})
end,
},
{
"ton/vim-alternate",
event = "VeryLazy",
},
}