Skip to content

Commit da871eb

Browse files
author
Fabian Imhof
committed
add shortcuts for cmakebuild and run
1 parent fa734bb commit da871eb

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

lua/custom/plugins/cmake-tools.lua

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,11 @@ return {
22
'Civitasv/cmake-tools.nvim',
33
config = function()
44
require('cmake-tools').setup {}
5+
6+
vim.keymap.set('n', '<leader>mb', ':CMakeBuild<CR>')
7+
vim.keymap.set('n', '<leader>mr', ':CMakeRun<CR>')
8+
9+
vim.keymap.set('n', '<leader>mmb', ':CMakeBuildCurrentFile<CR>')
10+
vim.keymap.set('n', '<leader>mmr', ':CMakeRunCurrentFile<CR>')
511
end,
612
}

lua/remap.lua

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
-- [[ Basic Keymaps ]]
22
-- See `:help vim.keymap.set()`
33

4-
vim.keymap.set('i', 'jj', '<Esc>')
5-
64
-- clear higlight on search on pressing <Esc> in normal mode
75
vim.keymap.set('n', '<Esc>', '<cmd>nohlsearch<CR>')
86

0 commit comments

Comments
 (0)