Add nil lsp

This commit is contained in:
lelgenio 2022-11-25 16:13:01 -03:00 committed by Leonardo Eugênio
parent b130c3fc4d
commit 7891699ec5
5 changed files with 69 additions and 1 deletions

View file

@ -73,6 +73,21 @@
"type": "github"
}
},
"flake-utils_2": {
"locked": {
"lastModified": 1667395993,
"narHash": "sha256-nuEHfE/LcWyuSWnS8t12N1wc105Qtau+/OdUAjtQ0rA=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "5aed5285a952e0b949eb3ba02c12fa4fcfef535f",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
},
"home-manager": {
"inputs": {
"nixpkgs": [
@ -131,6 +146,28 @@
"type": "github"
}
},
"nil-lsp": {
"inputs": {
"flake-utils": "flake-utils_2",
"nixpkgs": [
"nixpkgs-unstable"
],
"rust-overlay": "rust-overlay"
},
"locked": {
"lastModified": 1669391194,
"narHash": "sha256-4oWcXqyBYPHF+Wt8AxRhWk70O1qVJPkyBw2IhxJtj6k=",
"owner": "oxalica",
"repo": "nil",
"rev": "afec5fed829ee193de7e8c62e1fb4bd55140f4ac",
"type": "github"
},
"original": {
"owner": "oxalica",
"repo": "nil",
"type": "github"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1659219666,
@ -231,6 +268,7 @@
"home-manager": "home-manager",
"hyprland": "hyprland",
"material-wifi-icons": "material-wifi-icons",
"nil-lsp": "nil-lsp",
"nixpkgs": "nixpkgs_2",
"nixpkgs-unstable": "nixpkgs-unstable",
"nur": "nur",
@ -257,6 +295,31 @@
"type": "github"
}
},
"rust-overlay": {
"inputs": {
"flake-utils": [
"nil-lsp",
"flake-utils"
],
"nixpkgs": [
"nil-lsp",
"nixpkgs"
]
},
"locked": {
"lastModified": 1669170936,
"narHash": "sha256-TKPH4Pzkjw5gAPo9hejs3O4mWJW6V/RSiOj8UuSFRTs=",
"owner": "oxalica",
"repo": "rust-overlay",
"rev": "c90c223c4aef334356029b89c72bb65e26f7efe6",
"type": "github"
},
"original": {
"owner": "oxalica",
"repo": "rust-overlay",
"type": "github"
}
},
"sea-orm-cli": {
"locked": {
"lastModified": 1659947860,

View file

@ -32,6 +32,9 @@
sea-orm-cli.url = "github:lucperkins/nixpkgs/lperkins/sea-orm-cli";
nil-lsp.url = "github:oxalica/nil";
nil-lsp.inputs.nixpkgs.follows = "nixpkgs-unstable";
# my stuff
dhist.url = "github:lelgenio/dhist";
};

View file

@ -12,6 +12,7 @@
dhist = inputs.dhist.packages.${system}.dhist;
mpvpaper = inputs.wegank.packages.${prev.system}.mpvpaper;
sea-orm-cli = inputs.sea-orm-cli.legacyPackages.${prev.system}.sea-orm-cli;
nil-lsp = inputs.nil-lsp.packages.${prev.system}.nil;
alacritty = (prev.unstable.alacritty.overrideAttrs (old-alacritty: rec {
src = inputs.alacritty-sixel;
cargoDeps = old-alacritty.cargoDeps.overrideAttrs (prev.lib.const {

View file

@ -103,6 +103,7 @@ in {
nodePackages.uglify-js
flow # js lsp server
nil-lsp # nix lsp server
# cargo
cargo-edit

View file

@ -108,7 +108,7 @@ command = "nimlsp"
[language.nix]
filetypes = ["nix"]
roots = ["flake.nix", "shell.nix", ".git"]
command = "rnix-lsp"
command = "nil"
[language.ocaml]
filetypes = ["ocaml"]