i see why nixd is in unstable

This commit is contained in:
Sakooooo 2023-08-06 10:55:44 +03:00
parent 295da0d027
commit 7cccad2680
Signed by: sako
GPG key ID: 3FD715D87D7725E0
3 changed files with 27 additions and 2 deletions

View file

@ -30,9 +30,17 @@ local capabilities = require("cmp_nvim_lsp").default_capabilities()
mason_null_ls.setup() mason_null_ls.setup()
-- funny lsp config stuff -- funny lsp config stuff
require('lspconfig').nixd.setup({ require('lspconfig').nil_ls.setup({
on_attach = on_attach, on_attach = on_attach,
capabilities = capabilities, capabilities = capabilities,
settings = {
['nil'] = {
testSetting = 42,
formatting = {
command = { "nixpkgs-fmt" },
},
},
},
}) })

View file

@ -58,7 +58,8 @@
nvim.enable = true; nvim.enable = true;
vscode.enable = true; vscode.enable = true;
}; };
nixd.enable = true; nixd.enable = false;
nil.enable = true;
cc.enable = true; cc.enable = true;
javascript.enable = true; javascript.enable = true;
python.enable = true; python.enable = true;

16
modules/dev/nil.nix Normal file
View file

@ -0,0 +1,16 @@
{ outputs, options, config, lib, pkgs, ...}:
with lib;
let
cfg = config.modules.dev.nil;
in
{
options.modules.dev.nil = {
enable = mkEnableOption false;
};
config = mkIf cfg.enable {
environment.systemPackages = with pkgs; [
nil
];
};
}