Support different config paths (#426)

This makes the configuration files work if neovim's config path is different from `~/.config/nvim`.
This commit is contained in:
Amandus Søve Thorsrud 2021-05-26 01:08:15 +02:00 committed by GitHub
parent 046d3e79a9
commit 74ffae99d4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 12 additions and 11 deletions

View file

@ -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