keymaps.lua 296 B

123456789
  1. local function map(mode, lhs, rhs, opts)
  2. local options = { noremap = true, silent = true }
  3. if opts then
  4. options = vim.tbl_extend('force', options, opts)
  5. end
  6. vim.api.nvim_set_keymap(mode, lhs, rhs, options)
  7. end
  8. map("n", "<leader>gt", ":LazyGit<CR>", { desc = "Lazygit" })