nvim-config

Log | Files | Refs | Submodules | README

commit 4ced375f6d1d95753e021c142b9758025f101064
parent d599b24904d07b5f0f2333dca531b2a5fc9d3ac7
Author: Thomas Vigouroux <thomas.vigouroux@univ-grenoble-alpes.fr>
Date:   Fri, 15 Oct 2021 10:03:50 +0200

fix(telescope): use stdpath to open config files

Diffstat:
Mlua/tele_config.lua | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lua/tele_config.lua b/lua/tele_config.lua @@ -20,7 +20,7 @@ end map('n', '<Leader>e', lua_call('telescope.builtin', 'find_files')) map('n', '<Leader>h', lua_call('telescope.builtin', 'help_tags')) -map('n', '<Leader>oc', lua_call('telescope.builtin', 'find_files', { cwd = '/home/thomas/.config/nvim' })) +map('n', '<Leader>oc', lua_call('telescope.builtin', 'find_files', { cwd = vim.fn.stdpath'config' })) map('n', '<Leader>b', lua_call('telescope.builtin', 'buffers')) map('n', '<Leader>q', lua_call('telescope.builtin', 'quickfix')) map('n', '<Leader>r', lua_call('telescope.builtin', 'live_grep'))