try nvim-rooter

This commit is contained in:
Oliver Hartmann 2023-05-23 15:48:10 +02:00
parent f77d8674be
commit 99008719e2
3 changed files with 27 additions and 8 deletions

View File

@ -0,0 +1,15 @@
return {
'notjedi/nvim-rooter.lua',
opts = {
rooter_patterns = { '.git',
'_darcs',
'.hg',
'.bzr',
'.svn',
'Makefile',
'package.json',
'build_nvim',
'real_path.txt',
'conaninfo.txt' },
}
}

View File

@ -5,7 +5,18 @@ return {
{
silent_chdir = true,
ignore_lsp = { 'null-ls', 'cmake', 'neocmake' },
patterns = { '.git', '_darcs', '.hg', '.bzr', '.svn', 'Makefile', 'package.json', 'build_nvim', 'real_path.txt', 'conaninfo.txt' },
patterns = { '.git', '_darcs', '.hg', '.bzr', '.svn', 'Makefile', 'package.json', 'build_nvim', 'real_path.txt',
'conaninfo.txt' },
})
end,
enabled = false,
keys = {
{
'<space>p',
function()
require('telescope').extensions.projects.projects()
end,
desc = 'Select project',
},
}
}

View File

@ -87,13 +87,6 @@ return {
end,
desc = 'Find in workspace',
},
{
'<space>p',
function()
require('telescope').extensions.projects.projects()
end,
desc = 'Select project',
},
},
config = function()
local actions = require('telescope.actions')