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-dashboard/init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lua/lv-dashboard') diff --git a/lua/lv-dashboard/init.lua b/lua/lv-dashboard/init.lua index 4bd706f3..6a57efe8 100644 --- a/lua/lv-dashboard/init.lua +++ b/lua/lv-dashboard/init.lua @@ -26,7 +26,7 @@ vim.g.dashboard_custom_section = { b = {description = {' Recently Used Files'}, command = 'Telescope oldfiles'}, c = {description = {' Load Last Session '}, command = 'SessionLoad'}, d = {description = {' Find Word '}, command = 'Telescope live_grep'}, - e = {description = {' Settings '}, command = ':e ~/.config/nvim/lv-settings.lua'} + e = {description = {' Settings '}, command = ':e '..CONFIG_PATH..'/lv-settings.lua'} -- e = {description = {' Marks '}, command = 'Telescope marks'} } @@ -41,5 +41,5 @@ vim.g.dashboard_custom_section = { -- } -- find_history = 'SPC f h', --- vim.g.dashboard_session_directory = '~/.cache/nvim/session' +-- vim.g.dashboard_session_directory = CACHE_PATH..'/session' vim.g.dashboard_custom_footer = O.dashboard.footer -- cgit v1.2.3