From 21502aadd6517305b3eb14bfa7165272cb592065 Mon Sep 17 00:00:00 2001 From: "Kenneth Benzie (Benie)" Date: Sun, 17 Mar 2024 14:01:01 +0000 Subject: [PATCH] Add < and > to the C++ matchpairs setting for % --- after/ftplugin/cpp.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/after/ftplugin/cpp.lua b/after/ftplugin/cpp.lua index 54962ef..ebe79e5 100644 --- a/after/ftplugin/cpp.lua +++ b/after/ftplugin/cpp.lua @@ -1,3 +1,4 @@ -vim.bo.commentstring = '//%s' +vim.opt.commentstring = '//%s' +vim.opt.matchpairs:append('<:>') require('build').create_commands()