Skip to content

fix(workspace): extend ignoreDir#113

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

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

Conversation

@alexandre-abrioux

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

Copy link
Copy Markdown

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

github-actions Bot commented Sep 1, 2025

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 Sep 1, 2025
@alexandre-abrioux

Copy link
Copy Markdown
Author

not stale

@llakala

llakala commented Sep 1, 2025

Copy link
Copy Markdown

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.

NovaViper added a commit to NovaViper/novavim that referenced this pull request May 29, 2026
Using llakala's fork due to `workspace.ignoreDir` not being detected
See: folke/lazydev.nvim#113
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