scorpio 1 年之前
父节点
当前提交
9cbcb8fee3
共有 1 个文件被更改,包括 6 次插入7 次删除
  1. 6 7
      lua/plugin-config/project.lua

+ 6 - 7
lua/plugin-config/project.lua

@@ -1,21 +1,20 @@
 local status, project = pcall(require, "project_nvim")
 if not status then
-    vim.notify("没有找到 project_nvim")
-    return
+  vim.notify("没有找到 project_nvim")
+  return
 end
 
 -- nvim-tree 支持
 vim.g.nvim_tree_respect_buf_cwd = 1
 
 project.setup({
-    detection_methods = {"pattern"},
-    patterns = {".git", "_darcs", ".hg", ".bzr", ".svn", "Makefile", "package.json", ".sln"}
+  detection_methods = { "pattern" },
+  patterns = { ".git", "_darcs", ".hg", ".bzr", ".svn", "Makefile", "package.json", ".sln", ".nvim" },
 })
 
 local status, telescope = pcall(require, "telescope")
 if not status then
-    vim.notify("没有找到 telescope")
-    return
+  vim.notify("没有找到 telescope")
+  return
 end
 pcall(telescope.load_extension, "projects")
-