diff --git a/.config/nvim/lua/my/coding.lua b/.config/nvim/lua/my/coding.lua index a10694a..eb26e2b 100644 --- a/.config/nvim/lua/my/coding.lua +++ b/.config/nvim/lua/my/coding.lua @@ -78,5 +78,6 @@ require('gitsigns').setup({ require('project_nvim').setup({ patterns = require('my.functions').project_root_markers, - show_hidden = false + show_hidden = false, + fallback_buffer_dir = true }) diff --git a/.config/nvim/lua/my/tools.lua b/.config/nvim/lua/my/tools.lua index c22d39d..e6bde44 100644 --- a/.config/nvim/lua/my/tools.lua +++ b/.config/nvim/lua/my/tools.lua @@ -23,8 +23,7 @@ local t_builtin = require('telescope.builtin') local my = require('my.functions') map('n', 'tb', t_builtin.buffers, 'Buffers') map('n', 'tf', function() - t_builtin.find_files({ cwd = my.get_project_root() or - vim.fn.expand("%:p:h", true) }) -- fall back to current dir + t_builtin.find_files({ cwd = my.get_project_root() }) end, 'Files') map('n', 'tF', t_builtin.find_files, 'Files in cw') map('n', 'to', t_builtin.oldfiles, 'Recently opened files')