feat: fix for when internal formatter is true

This commit is contained in:
NotAShelf 2023-04-18 01:11:02 +03:00
parent c8b247b4d6
commit 2627d0484a
No known key found for this signature in database
GPG key ID: F0D14CCB5ED5AA22
2 changed files with 3 additions and 3 deletions

View file

@ -2,7 +2,7 @@
with lib; let
mkEnable = desc:
mkOption {
description = "Turn on ${desc} for enabled langauges by default";
description = "Turn on ${desc} for enabled languages by default";
type = types.bool;
default = false;
};

View file

@ -15,7 +15,7 @@ with builtins; let
servers = {
rnix = {
package = pkgs.rnix-lsp;
internalFormatter = true;
internalFormatter = cfg.format.type == "nixpkgs-fmt";
lspConfig = ''
lspconfig.rnix.setup{
capabilities = capabilities,
@ -31,7 +31,7 @@ with builtins; let
nil = {
package = pkgs.nil;
internalFormatter = cfg.format.type != "nixpkgs-fmt";
internalFormatter = true;
lspConfig = ''
lspconfig.nil_ls.setup{
capabilities = capabilities,