SoloVim/after/plugin/project.lua
2023-08-28 21:32:28 +03:00

13 lines
507 B
Lua

if not pcall(require, "project_nvim") then
return
end
require("project_nvim").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
patterns = { ".git", "package.json", ".venv", "Cargo.toml", "requirements.txt", "CMakeLists.txt" },
})
local telescope = require("telescope")
telescope.load_extension("projects")