Skip to content
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

Add support for Nix LSP (Nil) #2551

Closed
MrFoxPro opened this issue Nov 11, 2024 · 3 comments
Closed

Add support for Nix LSP (Nil) #2551

MrFoxPro opened this issue Nov 11, 2024 · 3 comments

Comments

@MrFoxPro
Copy link

It would be nice to have LSP and syntax highlightning (not sure if it's LSP responsibility) for Nix.
Language server: Nil
Example integration with Lapce editor: https://github.com/MrFoxPro/lapce-nix

@jwortmann
Copy link
Member

Have you tried to add a basic config for this server in LSP.sublime-settings? From its Readme it appears that the server can be started just by running nil (I haven't tested). There is a syntax highlighting package for Nix on Package Control, which would be required: https://packagecontrol.io/packages/Nix

{
    "clients": {
        "nil": {
            "enabled": true,
            "command": ["nil"],
            "selector": "source.nix"
        },
    }
}

@MrFoxPro
Copy link
Author

Have you tried to add a basic config for this server in LSP.sublime-settings? From its Readme it appears that the server can be started just by running nil (I haven't tested). There is a syntax highlighting package for Nix on Package Control, which would be required: https://packagecontrol.io/packages/Nix

{
    "clients": {
        "nil": {
            "enabled": true,
            "command": ["nil"],
            "selector": "source.nix"
        },
    }
}

That works with Nix extension, thank you very much! However, seems like it's kinda unmaintained.

@predragnikolic
Copy link
Member

However, seems like it's kinda unmaintained.

What seems unmaintained? The Nix syntax highlighting package?

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

No branches or pull requests

3 participants