Skip to content
This repository has been archived by the owner on Jul 6, 2024. It is now read-only.

Symlinked plugins not added to lua_ls library path on NixOS #139

Closed
mrcjkb opened this issue Mar 11, 2023 · 0 comments · Fixed by #140
Closed

Symlinked plugins not added to lua_ls library path on NixOS #139

mrcjkb opened this issue Mar 11, 2023 · 0 comments · Fixed by #140

Comments

@mrcjkb
Copy link
Contributor

mrcjkb commented Mar 11, 2023

Hi.

First, thanks for making this awesome plugin! 😄

I'm trying to set up a project-local config using neoconf.nvim for one of my Neovim plugins that has some dependencies.
My goal is to get diagnostics for emmylua annotations using types defined in the neotest dependency.

I added a neoconf.json to the root directory.

In my Neovim config...

The root directory is detected correctly.
My annotations using the neotest types result in warnings like "Undefined type or alias neotest.Adapter".

It seems like the neoconf.json is detected and loaded:

:lua =require('neodev.config').options
{
  debug = false,
  library = {
    enabled = true,
    plugins = { "neotest", "nvim-treesitter", "plenary.nvim" },
    runtime = true,
    types = true
  },
  lspconfig = false,
  override = <function 1>,
  pathStrict = true,
  setup_jsonls = true
}

Am I missing something? Any help with troubleshooting this would be much appreciated.

Originally posted by @mrcjkb in #138

mrcjkb added a commit to mrcjkb/neodev.nvim that referenced this issue Mar 11, 2023
Fixes folke#139.

When plugins on the packpath are symlinks (which is the case
when using a NixOS Neovim module), the plugin names may not be
properly detected.

This fixes that by using the symlinked path, not the real path,
to detect the plugin name.
folke pushed a commit that referenced this issue Mar 12, 2023
Fixes #139.

When plugins on the packpath are symlinks (which is the case
when using a NixOS Neovim module), the plugin names may not be
properly detected.

This fixes that by using the symlinked path, not the real path,
to detect the plugin name.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant