mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2024-11-07 17:15:58 +01: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
|
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;
|
||||||
};
|
};
|
||||||
|
|
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue