mappings.lua 610 B

1234567891011121314151617181920212223242526272829
  1. local default_opts = require('utils.mappings_utils').default_opts
  2. ncvim.add_mappings({
  3. {
  4. mode = 'n',
  5. key_string = '<leader>ff',
  6. command = '<cmd>Telescope live_grep<cr>',
  7. options = default_opts,
  8. },
  9. {
  10. mode = 'n',
  11. key_string = '<leader>bb',
  12. command = '<cmd>Telescope buffers<cr>',
  13. options = default_opts,
  14. },
  15. {
  16. mode = 'n',
  17. key_string = '<C-p>',
  18. command = '<cmd>Telescope find_files<cr>',
  19. options = default_opts,
  20. },
  21. {
  22. mode = 'n',
  23. key_string = '<leader>fh',
  24. command = '<cmd>Telescope search_history<cr>',
  25. options = default_opts,
  26. },
  27. })