summaryrefslogtreecommitdiff
path: root/lua/lv-globals.lua
diff options
context:
space:
mode:
authorAmandus Søve Thorsrud <[email protected]>2021-05-26 01:08:15 +0200
committerGitHub <[email protected]>2021-05-25 19:08:15 -0400
commit74ffae99d44ef8ed27df63ae0bf39c0dfe71ef99 (patch)
tree2d562a46849d6d683f5d3f9597a213005183b4a8 /lua/lv-globals.lua
parent046d3e79a9dc8689175c0ecbd565ca423dde7b04 (diff)
Support different config paths (#426)
This makes the configuration files work if neovim's config path is different from `~/.config/nvim`.
Diffstat (limited to 'lua/lv-globals.lua')
-rw-r--r--lua/lv-globals.lua7
1 files changed, 4 insertions, 3 deletions
diff --git a/lua/lv-globals.lua b/lua/lv-globals.lua
index bed92a45..d8065b27 100644
--- a/lua/lv-globals.lua
+++ b/lua/lv-globals.lua
@@ -1,3 +1,7 @@
+CONFIG_PATH = vim.fn.stdpath('config')
+DATA_PATH = vim.fn.stdpath('data')
+CACHE_PATH = vim.fn.stdpath('cache')
+
O = {
auto_close_tree = 0,
auto_complete = true,
@@ -81,6 +85,3 @@ O = {
}
}
-DATA_PATH = vim.fn.stdpath('data')
-CACHE_PATH = vim.fn.stdpath('cache')
-