From a9e10f2855a7f5f5b67569079ba109edc2f6172f Mon Sep 17 00:00:00 2001 From: David Francis Date: Thu, 15 Feb 2024 15:11:33 +0000 Subject: [PATCH] Enable comment hotkeys --- init.lua | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/init.lua b/init.lua index ef15a43f..4155cbe7 100644 --- a/init.lua +++ b/init.lua @@ -250,6 +250,18 @@ vim.api.nvim_create_autocmd('TextYankPost', { pattern = '*', }) +require('Comment').setup({ + ignore = '^$', + toggler = { + line = 'cc', + block = 'bc', + }, + opleader = { + line = 'c', + block = 'b', + }, +}) + -- [[ Configure Telescope ]] -- See `:help telescope` and `:help telescope.setup()` require('telescope').setup {