LunarVim/lua/config/defaults.lua
kylo252 d01ba08eae
refactor: auto-generate language configuration (#1584)
Refactor the monolithic `lvim.lang` design into a more modular approach.

IMPORTANT: run `:LvimUpdate` in order to generate the new ftplugin template files.
2021-10-03 16:13:46 +02:00

37 lines
951 B
Lua

local home_dir = vim.loop.os_homedir()
local utils = require "utils"
lvim = {
leader = "space",
colorscheme = "onedarker",
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", "lunarvim_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 = {},
}