try nvim-rooter
This commit is contained in:
parent
f77d8674be
commit
99008719e2
15
lua/plugins/nvim-router.lua
Normal file
15
lua/plugins/nvim-router.lua
Normal 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' },
|
||||
}
|
||||
}
|
@ -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',
|
||||
},
|
||||
}
|
||||
}
|
||||
|
@ -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')
|
||||
|
Loading…
x
Reference in New Issue
Block a user