diff --git a/lua/config/keybinds.lua b/lua/config/keybinds.lua index 510e1ad..2e4b87b 100644 --- a/lua/config/keybinds.lua +++ b/lua/config/keybinds.lua @@ -200,6 +200,19 @@ wk.add({ end, desc = "Toggle Precognition", }, + { + "a", + "Alternate", + 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 ------------------------------- diff --git a/lua/plugins/coding.lua b/lua/plugins/coding.lua index a5edf68..13530de 100644 --- a/lua/plugins/coding.lua +++ b/lua/plugins/coding.lua @@ -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", + }, }