i see why nixd is in unstable
This commit is contained in:
parent
295da0d027
commit
7cccad2680
3 changed files with 27 additions and 2 deletions
|
@ -30,9 +30,17 @@ local capabilities = require("cmp_nvim_lsp").default_capabilities()
|
|||
mason_null_ls.setup()
|
||||
|
||||
-- funny lsp config stuff
|
||||
require('lspconfig').nixd.setup({
|
||||
require('lspconfig').nil_ls.setup({
|
||||
on_attach = on_attach,
|
||||
capabilities = capabilities,
|
||||
settings = {
|
||||
['nil'] = {
|
||||
testSetting = 42,
|
||||
formatting = {
|
||||
command = { "nixpkgs-fmt" },
|
||||
},
|
||||
},
|
||||
},
|
||||
})
|
||||
|
||||
|
||||
|
|
|
@ -58,7 +58,8 @@
|
|||
nvim.enable = true;
|
||||
vscode.enable = true;
|
||||
};
|
||||
nixd.enable = true;
|
||||
nixd.enable = false;
|
||||
nil.enable = true;
|
||||
cc.enable = true;
|
||||
javascript.enable = true;
|
||||
python.enable = true;
|
||||
|
|
16
modules/dev/nil.nix
Normal file
16
modules/dev/nil.nix
Normal 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
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue