nvim: remove cwd workarounds and fix it in project.nvim
https://github.com/ahmedkhalf/project.nvim/pull/89
This commit is contained in:
parent
e7ba7e5a7b
commit
335e02f4f8
|
@ -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
|
||||
})
|
||||
|
|
|
@ -23,8 +23,7 @@ local t_builtin = require('telescope.builtin')
|
|||
local my = require('my.functions')
|
||||
map('n', '<Leader>tb', t_builtin.buffers, 'Buffers')
|
||||
map('n', '<Leader>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', '<Leader>tF', t_builtin.find_files, 'Files in cw')
|
||||
map('n', '<Leader>to', t_builtin.oldfiles, 'Recently opened files')
|
||||
|
|
Loading…
Reference in New Issue
Block a user