From 213e3961fa637e4dbe4ef1ea5fceadcb372e020e Mon Sep 17 00:00:00 2001 From: chaeing Date: Sat, 31 Jul 2021 11:28:59 -0700 Subject: [Feature] Rename lv-config.lua to config.lua (#1193) * Rename example config files * Update user config path in installer * Update user config path with a variable * Update default user config file to config.lua * Add fallback to lv-config if config.lua not found * Add global variable USER_CONFIG_PATH --- .luacheckrc | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) (limited to '.luacheckrc') diff --git a/.luacheckrc b/.luacheckrc index b55bbb23..a3875f91 100644 --- a/.luacheckrc +++ b/.luacheckrc @@ -1,31 +1,31 @@ -- vim: ft=lua tw=80 stds.nvim = { - globals = { - "lvim", - vim = { fields = { "g" } }, - "CONFIG_PATH", - "CACHE_PATH", - "DATA_PATH", - "TERMINAL", - "USER", + globals = { + "lvim", + vim = { fields = { "g" } }, + "CONFIG_PATH", + "CACHE_PATH", + "DATA_PATH", + "TERMINAL", + "USER", "C", "Config", "WORKSPACE_PATH", "JAVA_LS_EXECUTABLE", "MUtils", - os = {fields = {"capture"}} - }, - read_globals = { - "jit", - "os", - "vim", - -- vim = { fields = { "cmd", "api", "fn", "o" } }, - }, + "USER_CONFIG_PATH", + os = { fields = { "capture" } }, + }, + read_globals = { + "jit", + "os", + "vim", + -- vim = { fields = { "cmd", "api", "fn", "o" } }, + }, } std = "lua51+nvim" - -- Don't report unused self arguments of methods. self = false @@ -33,6 +33,6 @@ self = false cache = true ignore = { - "631", -- max_line_length - "212/_.*", -- unused argument, for vars with "_" prefix + "631", -- max_line_length + "212/_.*", -- unused argument, for vars with "_" prefix } -- cgit v1.2.3