productivity.lua 540 B

12345678910111213141516171819202122232425
  1. local wk_ok, which_key = pcall(require, "which-key")
  2. if wk_ok then
  3. which_key.setup({})
  4. which_key.add({
  5. { "<leader>g", group = "Git" },
  6. { "<leader>x", group = "Trouble" },
  7. { "<leader>v", group = "Debug" },
  8. })
  9. end
  10. local trouble_ok, trouble = pcall(require, "trouble")
  11. if trouble_ok then
  12. trouble.setup({})
  13. end
  14. local oil_ok, oil = pcall(require, "oil")
  15. if oil_ok then
  16. oil.setup({
  17. default_file_explorer = false,
  18. skip_confirm_for_simple_edits = true,
  19. view_options = {
  20. show_hidden = true,
  21. },
  22. })
  23. end