nvim/lua/user/project.lua

20 lines
576 B
Lua
Raw Normal View History

2022-10-12 22:07:20 -04:00
local status_ok, project = pcall(require, "project_nvim")
if not status_ok then
return
end
project.setup({
-- detection_methods = { "lsp", "pattern" }, -- NOTE: lsp detection will get annoying with multiple langs in one project
detection_methods = { "pattern" },
-- patterns used to detect root dir, when **"pattern"** is in detection_methods
2022-11-09 21:54:42 -05:00
patterns = { "serverless.yml", ".git", "Makefile", "package.json", "Cargo.toml" },
2022-10-12 22:07:20 -04:00
})
local tele_status_ok, telescope = pcall(require, "telescope")
if not tele_status_ok then
return
end
telescope.load_extension('projects')