Skip to content

feature: language options in seperate files #1943

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
1 task done
sand4rt opened this issue Mar 7, 2025 · 2 comments
Open
1 task done

feature: language options in seperate files #1943

sand4rt opened this issue Mar 7, 2025 · 2 comments
Labels
enhancement New feature or request

Comments

@sand4rt
Copy link

sand4rt commented Mar 7, 2025

Did you check the docs?

  • I have read all the lazy.nvim docs

Is your feature request related to a problem? Please describe.

Wanted to store my language config in seperate lua files and saw that lazy vim does something similar:

return {
  recommended = function()
    return LazyVim.extras.wants({
      ft = "rust",
      root = { "Cargo.toml", "rust-project.json" },
    })
  end,
  {
    "Saecki/crates.nvim",
    event = { "BufRead Cargo.toml" },
    opts = { },
  }
}

However the recommended and the LaztVim.extras.wants are not included lazy.vim

Describe the solution you'd like

Can this feature be moved to lazy.nvim?

Describe alternatives you've considered

I tried using ~/.config/nvim/after/ftplugin/{language}.lua as explained by TJ DeVries but this seems only for vim options, not for lazy plugins.

I have it working without the recommended property but i think im missing out on perf improvements, right?

Additional context

No response

@sand4rt sand4rt added the enhancement New feature or request label Mar 7, 2025
Copy link
Contributor

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.

@github-actions github-actions bot added the stale label Apr 21, 2025
@sand4rt
Copy link
Author

sand4rt commented Apr 21, 2025

Bump

@github-actions github-actions bot removed the stale label Apr 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant