leetcode.lua 790 B

123456789101112131415161718192021222324252627282930313233343536
  1. local mappings_utils = require('utils.mappings_utils')
  2. local map = mappings_utils.map
  3. local default_opts = mappings_utils.default_opts
  4. -- treat long lines as multiple lines
  5. ncvim.add_mappings {
  6. {
  7. mode = 'n',
  8. key_string = '<leader>ll',
  9. command = ':LeetCodeList<CR>',
  10. options = default_opts,
  11. },
  12. {
  13. mode = 'n',
  14. key_string = '<leader>lt',
  15. command = ':LeetCodeTest<CR>',
  16. options = default_opts,
  17. },
  18. {
  19. mode = 'n',
  20. key_string = '<leader>ls',
  21. command = ':LeetCodeSubmit<CR>',
  22. options = default_opts,
  23. },
  24. {
  25. mode = 'n',
  26. key_string = '<leader>li',
  27. command = ':LeetCodeSignIn<CR>',
  28. options = default_opts,
  29. },
  30. }
  31. vim.g.leetcode_browser = 'chrome'
  32. vim.g.leetcode_hide_paid_only = 1
  33. vim.g.leetcode_solution_filetype = 'golang'