summaryrefslogtreecommitdiff
path: root/.config/nvim/lua/config/defaults.lua
blob: bb2bcc6f997856dc56e2cd57d0ff97823a96ffa2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
local home_dir = vim.loop.os_homedir()
local utils = require "utils"

options = {
  leader = "space",
  colorscheme = "dark",
  line_wrap_cursor_movement = true,
  transparent_window = false,
  format_on_save = true,
  vsnip_dir = utils.join_paths(home_dir, ".config", "snippets"),
  database = {
    save_location = utils.join_paths(home_dir, ".config", "nvim_db"),
    auto_execute = 1,
  },
  keys = {},

  builtin = {},

  log = {
    ---@usage can be { "trace", "debug", "info", "warn", "error", "fatal" },
    level = "warn",
    viewer = {
      ---@usage this will fallback on "less +F" if not found
      cmd = "lnav",
      layout_config = {
        ---@usage direction = 'vertical' | 'horizontal' | 'window' | 'float',
        direction = "horizontal",
        open_mapping = "",
        size = 40,
        float_opts = {},
      },
    },
  },
  plugins = {
    -- use config.lua for this not put here
  },

  autocommands = {},
  lang = {},
}