Skip to content

fix(workspace): extend ignoreDir#113

Open
alexandre-abrioux wants to merge 1 commit intofolke:mainfrom
alexandre-abrioux:extend-ignoredir
Open

fix(workspace): extend ignoreDir#113
alexandre-abrioux wants to merge 1 commit intofolke:mainfrom
alexandre-abrioux:extend-ignoredir

Conversation

@alexandre-abrioux
Copy link
Copy Markdown

@alexandre-abrioux alexandre-abrioux commented May 17, 2025

Context

Because of how vim.tbl_deep_extend works, the workspace.ignoreDir setting is overwritten by lazydev.

Change

I propose keeping the existing workspace.ignoreDir config set by the user (if any) and extending it.

Usage

With this change, we can configure our lsp to always ignore certain folders, like so:

lua_ls = {
  settings = {
    Lua = {
      workspace = {
        ignoreDir = {
          ".direnv",
          ".tests",
        },
      },
    },
  },
},

@alexandre-abrioux alexandre-abrioux changed the title fix(workspace): extend ignoreDir fix(workspace): extend workspace.ignoreDir May 17, 2025
@alexandre-abrioux alexandre-abrioux changed the title fix(workspace): extend workspace.ignoreDir fix(workspace): extend ignoreDir May 17, 2025
@github-actions
Copy link
Copy Markdown
Contributor

This PR is stale because it has been open 30 days with no activity.

@github-actions github-actions Bot added stale This issue or PR has been inactive for a while and removed stale This issue or PR has been inactive for a while labels Jun 17, 2025
@github-actions
Copy link
Copy Markdown
Contributor

This PR is stale because it has been open 30 days with no activity.

@github-actions github-actions Bot added the stale This issue or PR has been inactive for a while label Jul 30, 2025
@alexandre-abrioux
Copy link
Copy Markdown
Author

not stale

@github-actions github-actions Bot removed the stale This issue or PR has been inactive for a while label Aug 1, 2025
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Sep 1, 2025

This PR is stale because it has been open 30 days with no activity.

@github-actions github-actions Bot added the stale This issue or PR has been inactive for a while label Sep 1, 2025
@alexandre-abrioux
Copy link
Copy Markdown
Author

not stale

@llakala
Copy link
Copy Markdown

llakala commented Sep 1, 2025

I hate stale bots!

@github-actions github-actions Bot removed the stale This issue or PR has been inactive for a while label Sep 2, 2025
@HuaDeity
Copy link
Copy Markdown

I really need this feature. In my dotfiles configuration, I have a virtual environment with lua-language-server installed, and I must set the ignoreDir option to point to that environment directory. Otherwise, Neovim becomes extremely slow, and lua-language-server consumes up to 5 GB of memory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants