diff --git a/lua/plugins/nvim-router.lua b/lua/plugins/nvim-router.lua new file mode 100644 index 0000000..543d424 --- /dev/null +++ b/lua/plugins/nvim-router.lua @@ -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' }, + } +} diff --git a/lua/plugins/project.lua b/lua/plugins/project.lua index 3233943..5099e09 100644 --- a/lua/plugins/project.lua +++ b/lua/plugins/project.lua @@ -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 = { + { + 'p', + function() + require('telescope').extensions.projects.projects() + end, + desc = 'Select project', + }, + } } diff --git a/lua/plugins/telescope.lua b/lua/plugins/telescope.lua index baca278..a0a3533 100644 --- a/lua/plugins/telescope.lua +++ b/lua/plugins/telescope.lua @@ -87,13 +87,6 @@ return { end, desc = 'Find in workspace', }, - { - 'p', - function() - require('telescope').extensions.projects.projects() - end, - desc = 'Select project', - }, }, config = function() local actions = require('telescope.actions')