add nixd instead of nil-ls
This commit is contained in:
parent
63a55d36b0
commit
701693bfc8
4 changed files with 22 additions and 1 deletions
|
@ -30,7 +30,7 @@ local capabilities = require("cmp_nvim_lsp").default_capabilities()
|
|||
mason_null_ls.setup()
|
||||
|
||||
-- funny lsp config stuff
|
||||
require('lspconfig').nil_ls.setup({
|
||||
require('lspconfig').nixd.setup({
|
||||
on_attach = on_attach,
|
||||
capabilities = capabilities,
|
||||
})
|
||||
|
|
|
@ -57,6 +57,7 @@
|
|||
editors = {
|
||||
nvim.enable = true;
|
||||
vscode.enable = true;
|
||||
nixd.enable = true;
|
||||
};
|
||||
cc.enable = true;
|
||||
javascript.enable = true;
|
||||
|
|
|
@ -6,5 +6,6 @@
|
|||
./python.nix
|
||||
./rust.nix
|
||||
./unityhub.nix
|
||||
./nixd.nix
|
||||
];
|
||||
}
|
||||
|
|
19
modules/dev/nixd.nix
Normal file
19
modules/dev/nixd.nix
Normal file
|
@ -0,0 +1,19 @@
|
|||
# nixd nix lsp using nix and nixpkgs
|
||||
# where has this been my whole life
|
||||
{ outputs, options, config, lib, pkgs, ...}:
|
||||
with lib;
|
||||
let
|
||||
cfg = config.modules.dev.nixd;
|
||||
in
|
||||
{
|
||||
options.modules.dev.nixd = {
|
||||
enable = mkEnableOption false;
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
environment.systemPackages = with pkgs; [
|
||||
nixd
|
||||
nixpkgs-fmt
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue