nvim/lua/user/project.lua
Andy Teijelo a681654ff2 use treesitter to fold, disable treesitter indent for rust,
tell project.lua that Cargo.toml is a project root pattern
2022-11-03 11:09:12 -04:00

20 lines
558 B
Lua

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