summaryrefslogtreecommitdiff
path: root/.config/nvim
diff options
context:
space:
mode:
authorKyren223 <contact@kyren.codes>2025-09-01 21:33:36 +0300
committerKyren223 <contact@kyren.codes>2025-09-01 21:33:36 +0300
commit20f6415230c85e4cb115b3add7b5add76cac80ef (patch)
treeea9f63249b5537a247aa5ee57f03692bcd015aa3 /.config/nvim
parente8090d008786a2445331cba31fb2463b16452385 (diff)
Add alt+r and alt+c as aliases for compiling code
Diffstat (limited to '.config/nvim')
-rw-r--r--.config/nvim/lsp/clangd.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/.config/nvim/lsp/clangd.lua b/.config/nvim/lsp/clangd.lua
index 6631262..233d118 100644
--- a/.config/nvim/lsp/clangd.lua
+++ b/.config/nvim/lsp/clangd.lua
@@ -156,6 +156,8 @@ return {
end, { desc = 'Show symbol info' })
vim.keymap.set('n', '<A-m>', compile_project('clear && ./build.sh krypton\n'), { desc = '[H]eader and Source Switcher' })
+ vim.keymap.set('n', '<A-r>', compile_project('clear && ./build.sh krypton\n'), { desc = '[H]eader and Source Switcher' })
+ vim.keymap.set('n', '<A-c>', compile_project('clear && ./build.sh krypton\n'), { desc = '[H]eader and Source Switcher' })
vim.keymap.set('n', '<A-t>', compile_project('clear && ./build.sh test\n'), { desc = '[H]eader and Source Switcher' })
vim.keymap.set('n', '<leader>h', '<cmd>ClangdSwitchSourceHeader<cr>', { desc = '[H]eader and Source Switcher' })
end,