defaults.lua 951 B

12345678910111213141516171819202122232425262728293031323334353637
  1. local home_dir = vim.loop.os_homedir()
  2. local utils = require "utils"
  3. lvim = {
  4. leader = "space",
  5. colorscheme = "onedarker",
  6. line_wrap_cursor_movement = true,
  7. transparent_window = false,
  8. format_on_save = true,
  9. vsnip_dir = utils.join_paths(home_dir, ".config", "snippets"),
  10. database = { save_location = utils.join_paths(home_dir, ".config", "lunarvim_db"), auto_execute = 1 },
  11. keys = {},
  12. builtin = {},
  13. log = {
  14. ---@usage can be { "trace", "debug", "info", "warn", "error", "fatal" },
  15. level = "warn",
  16. viewer = {
  17. ---@usage this will fallback on "less +F" if not found
  18. cmd = "lnav",
  19. layout_config = {
  20. ---@usage direction = 'vertical' | 'horizontal' | 'window' | 'float',
  21. direction = "horizontal",
  22. open_mapping = "",
  23. size = 40,
  24. float_opts = {},
  25. },
  26. },
  27. },
  28. plugins = {
  29. -- use config.lua for this not put here
  30. },
  31. autocommands = {},
  32. lang = {},
  33. }