From 74ffae99d44ef8ed27df63ae0bf39c0dfe71ef99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Amandus=20S=C3=B8ve=20Thorsrud?= Date: Wed, 26 May 2021 01:08:15 +0200 Subject: Support different config paths (#426) This makes the configuration files work if neovim's config path is different from `~/.config/nvim`. --- lua/lv-globals.lua | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'lua/lv-globals.lua') 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') - -- cgit v1.2.3