🧠 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:
@@ -200,6 +200,19 @@ wk.add({
|
||||
end,
|
||||
desc = "Toggle Precognition",
|
||||
},
|
||||
{
|
||||
"<leader>a",
|
||||
"<cmd>Alternate<cr>",
|
||||
desc = "Toggle Alternate",
|
||||
cond = function()
|
||||
return (
|
||||
vim.bo.filetype == "c"
|
||||
or vim.bo.filetype == "h"
|
||||
or vim.bo.filetype == "cpp"
|
||||
or vim.bo.filetype == "hpp"
|
||||
)
|
||||
end,
|
||||
},
|
||||
})
|
||||
|
||||
-- ---------------------------- Spell Correction -------------------------------
|
||||
|
||||
+15
-7
@@ -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",
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user