mirror of
https://github.com/NotAShelf/nvf.git
synced 2024-11-26 15:06:45 +00:00
feat: fix for when internal formatter is true
This commit is contained in:
parent
c8b247b4d6
commit
2627d0484a
2 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
};
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue