refactor nvim: file.lua
This commit is contained in:
parent
b559a7f2ef
commit
c066deb974
@ -1,20 +1,36 @@
|
|||||||
-- if true then return {} end
|
-- if true then return {} end
|
||||||
return {
|
return {
|
||||||
-- 會自動cd到專案目錄
|
{
|
||||||
-- "ahmedkhalf/project.nvim",
|
-- 會自動cd到專案目錄
|
||||||
|
-- "ahmedkhalf/project.nvim",
|
||||||
|
|
||||||
-- 使用修改版的project.nvim
|
-- 使用修改版的project.nvim
|
||||||
-- 因為此套件會噴警告,原作者已經沒再維護了
|
-- 因為此套件會噴警告,原作者已經沒再維護了
|
||||||
-- vim.lsp.buf_get_clients() is deprecated. Run ":checkhealth vim.deprecated" for more information
|
-- vim.lsp.buf_get_clients() is deprecated. Run ":checkhealth vim.deprecated" for more information
|
||||||
"Spelis/project.nvim",
|
"Spelis/project.nvim",
|
||||||
branch = "patch-1",
|
branch = "patch-1",
|
||||||
enabled = vim.fn.has("nvim-0.10") == 1,
|
enabled = vim.fn.has("nvim-0.10") == 1,
|
||||||
|
|
||||||
config = function()
|
config = function()
|
||||||
require("project_nvim").setup {
|
require("project_nvim").setup {
|
||||||
-- your configuration comes here
|
-- Methods of detecting the root directory. **"lsp"** uses the native neovim
|
||||||
-- or leave it empty to use the default settings
|
-- lsp, while **"pattern"** uses vim-rooter like glob pattern matching. Here
|
||||||
-- refer to the configuration section below
|
-- order matters: if one is not detected, the other is used as fallback. You
|
||||||
}
|
-- can also delete or rearangne the detection methods.
|
||||||
end
|
detection_methods = { "lsp", "pattern" },
|
||||||
|
|
||||||
|
-- All the patterns used to detect root dir, when **"pattern"** is in
|
||||||
|
-- detection_methods
|
||||||
|
patterns = { ".git", "_darcs", ".hg", ".bzr", ".svn", "Makefile", "package.json" },
|
||||||
|
|
||||||
|
-- When set to false, you will get a message when project.nvim changes your
|
||||||
|
-- directory.
|
||||||
|
silent_chdir = true,
|
||||||
|
|
||||||
|
-- your configuration comes here
|
||||||
|
-- or leave it empty to use the default settings
|
||||||
|
-- refer to the configuration section below
|
||||||
|
}
|
||||||
|
end
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user