Skip to content

Conversation

alexandre-abrioux
Copy link

@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
Copy link
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
Copy link
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
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
Copy link
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
Author

not stale

@llakala
Copy link

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

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