mappings.lua 507 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. -- vim:fileencoding=utf-8:foldmethod=marker:foldmarker={{{,}}}
  2. -- {{{ imports and defines
  3. require "nvchad.mappings"
  4. local map = vim.keymap.set
  5. -- }}}
  6. -- {{{ Keymaps
  7. -- {{{ Normal mode
  8. map("n", ";", ":", { desc = "CMD enter command mode" })
  9. -- }}}
  10. -- {{{ Insert mode
  11. -- {{{ Exit from insert mode
  12. map("i", "jk", "<ESC>")
  13. map("i", "jj", "<ESC>")
  14. map("i", "kk", "<ESC>")
  15. -- }}}
  16. -- }}}
  17. -- {{{ All modes
  18. -- Don't work in insert mode
  19. --map({ "n", "i", "v" }, "<C-s>", "<cmd> w <cr>")
  20. -- }}}
  21. -- }}}