scorpio 1 éve
szülő
commit
9cbcb8fee3
1 módosított fájl, 6 hozzáadás és 7 törlés
  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")
-