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 with lib; let
mkEnable = desc: mkEnable = desc:
mkOption { mkOption {
description = "Turn on ${desc} for enabled langauges by default"; description = "Turn on ${desc} for enabled languages by default";
type = types.bool; type = types.bool;
default = false; default = false;
}; };

View file

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