From da871eb5ee848cde796613ea85f4cd633f637dc0 Mon Sep 17 00:00:00 2001 From: Fabian Imhof Date: Thu, 13 Mar 2025 16:56:24 +0100 Subject: [PATCH] add shortcuts for cmakebuild and run --- lua/custom/plugins/cmake-tools.lua | 6 ++++++ lua/remap.lua | 2 -- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/lua/custom/plugins/cmake-tools.lua b/lua/custom/plugins/cmake-tools.lua index 7964cf7c..161b3556 100644 --- a/lua/custom/plugins/cmake-tools.lua +++ b/lua/custom/plugins/cmake-tools.lua @@ -2,5 +2,11 @@ return { 'Civitasv/cmake-tools.nvim', config = function() require('cmake-tools').setup {} + + vim.keymap.set('n', 'mb', ':CMakeBuild') + vim.keymap.set('n', 'mr', ':CMakeRun') + + vim.keymap.set('n', 'mmb', ':CMakeBuildCurrentFile') + vim.keymap.set('n', 'mmr', ':CMakeRunCurrentFile') end, } diff --git a/lua/remap.lua b/lua/remap.lua index 52a7e963..c8566478 100644 --- a/lua/remap.lua +++ b/lua/remap.lua @@ -1,8 +1,6 @@ -- [[ Basic Keymaps ]] -- See `:help vim.keymap.set()` -vim.keymap.set('i', 'jj', '') - -- clear higlight on search on pressing in normal mode vim.keymap.set('n', '', 'nohlsearch')