switch between source and header files fast

  
-- Switch between .cpp and .hpp files
vim.api.nvim_set_keymap('n', 'hh', ':e %:r.hpp', { noremap = true, silent = true })
vim.api.nvim_set_keymap('n', 'cc', ':e %:r.cpp', { noremap = true, silent = true })
  

edit this page