From 5ae42b0c44c4237912dcea18457582b52d53804e Mon Sep 17 00:00:00 2001 From: opalmay <65673442+opalmay@users.noreply.github.com> Date: Sat, 7 Jan 2023 17:03:03 +0200 Subject: 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 --- lua/lvim/core/project.lua | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) (limited to 'lua/lvim/core/project.lua') 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 -- cgit v1.2.3