diff options
author | opalmay <[email protected]> | 2023-01-07 17:03:03 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2023-01-07 17:03:03 +0200 |
commit | 5ae42b0c44c4237912dcea18457582b52d53804e (patch) | |
tree | 9dcc55b80e9293d36ccef3a3f3a0743e7dbcaeb2 /lua/lvim/core/project.lua | |
parent | 719adbc4bb3a494073d1063bf2768bb2834e3916 (diff) |
feat: update setup tables (#3693)
* feat(nvim-tree): update setup table
* chore: lint
* fix: move option to correct place
* feat(illuminate): update setup table
* feat(which-key): update setup table
* feat(project.nvim): update setup table
* feat(gitsigns): update setup table
* chore: lint
* feat(lir): update setup table
Diffstat (limited to 'lua/lvim/core/project.lua')
-rw-r--r-- | lua/lvim/core/project.lua | 24 |
1 files changed, 18 insertions, 6 deletions
diff --git a/lua/lvim/core/project.lua b/lua/lvim/core/project.lua index c3734a16..17473c55 100644 --- a/lua/lvim/core/project.lua +++ b/lua/lvim/core/project.lua @@ -21,18 +21,30 @@ function M.config() -- detection_methods = { "lsp", "pattern" }, -- NOTE: lsp detection will get annoying with multiple langs in one project detection_methods = { "pattern" }, - ---@usage patterns used to detect root dir, when **"pattern"** is in detection_methods + -- All the patterns used to detect root dir, when **"pattern"** is in + -- detection_methods patterns = { ".git", "_darcs", ".hg", ".bzr", ".svn", "Makefile", "package.json", "pom.xml" }, - ---@ Show hidden files in telescope when searching for files in a project + -- Table of lsp clients to ignore by name + -- eg: { "efm", ... } + ignore_lsp = {}, + + -- Don't calculate root dir on specific directories + -- Ex: { "~/.cargo/*", ... } + exclude_dirs = {}, + + -- Show hidden files in telescope show_hidden = false, - ---@usage When set to false, you will get a message when project.nvim changes your directory. - -- When set to false, you will get a message when project.nvim changes your directory. + -- When set to false, you will get a message when project.nvim changes your + -- directory. silent_chdir = true, - ---@usage list of lsp client names to ignore when using **lsp** detection. eg: { "efm", ... } - ignore_lsp = {}, + -- What scope to change the directory, valid options are + -- * global (default) + -- * tab + -- * win + scope_chdir = "global", ---@type string ---@usage path to store the project history for use in telescope |