nixvim icon indicating copy to clipboard operation
nixvim copied to clipboard

lsp-lines error

Open Alexnortung opened this issue 3 years ago • 3 comments

Attempting to use lsp-lines by enabling it results in a runtime error when you start neovim.

config:

plugins.lsp-lines.enable = true;

Error:

Error detected while processing /nix/store/x63x75izcri00gqir1r5ib1snmnhdj14-init.vim:
line  399:
E5108: Error executing lua [string ":lua"]:77: attempt to call field 'setup' (a nil value)
stack traceback:
        [string ":lua"]:77: in main chunk

It seems like require('lsp_lines') resolves to a nil value.

Alexnortung avatar Oct 08 '22 08:10 Alexnortung

This seems to only happen on nixos-22.05, but honestly I can't really figure out why... Maybe it's related to #44 and it didn't end up being a full fix, will have to investigate.

pta2002 avatar Oct 08 '22 19:10 pta2002

I think this was a problem even before #44, but sure probably because I am using nixos-22.05.

I think it would be a good idea to make a bug template for GitHub so we can tell which Nixos version we are using, so it will be easier to investigate bugs.

Things to put in the template: Nixos version: Home manager version: Nixpkgs version for plugins: Neovim version:

I really like this project and might make a pr for this template in the next couple og days 🥳🥳

🥳🥳🥳🥳🥳🥳🥳🥳🥰🥰🥰🥰🥰🥰🤠🤠🤠🤠🤠🤠🤠🤠🤠🤠🤠🤠🤠😎😎😎😎🤞😎😎😎😎😎🤞😎

Alexnortung avatar Oct 08 '22 20:10 Alexnortung

Was just thinking about the template! I can probably take care of that tomorrow though, no need to worry about it :)

pta2002 avatar Oct 08 '22 20:10 pta2002

@Alexnortung is this issue still relevant ?

GaetanLepage avatar Apr 13 '23 22:04 GaetanLepage

No, I think it worked last time I used lsp lines. But I also switched to standalone, not sure if it is still a problem in home manager

Alexnortung avatar Apr 13 '23 22:04 Alexnortung

I have just tested on the HM module and I had no error. Closing then :)

GaetanLepage avatar Apr 14 '23 12:04 GaetanLepage