From 2fffaa31a6f353cf111e22a953d7c2345fb989c2 Mon Sep 17 00:00:00 2001 From: Artemis Tosini Date: Sun, 3 Dec 2023 22:56:08 +0000 Subject: [PATCH] nvim: add plugins to pylsp --- flake.lock | 18 +++++++++--------- sets/nvim.nix | 8 +++++++- 2 files changed, 16 insertions(+), 10 deletions(-) diff --git a/flake.lock b/flake.lock index fced884..2a1fa4f 100644 --- a/flake.lock +++ b/flake.lock @@ -224,11 +224,11 @@ ] }, "locked": { - "lastModified": 1701433070, - "narHash": "sha256-Gf9JStfENaUQ7YWFz3V7x/srIwr4nlnVteqaAxtwpgM=", + "lastModified": 1701609479, + "narHash": "sha256-mcEnMz7XB3K57ZX16VXoEkswljSNGXdMuUu5+g8a8R8=", "owner": "nix-community", "repo": "home-manager", - "rev": "4a8545f5e737a6338814a4676dc8e18c7f43fc57", + "rev": "e504e8d01f950776c3a3160ba38c5957a1b89e66", "type": "github" }, "original": { @@ -245,11 +245,11 @@ ] }, "locked": { - "lastModified": 1701524494, - "narHash": "sha256-dXNCIUWm8Z74PijQ/THFb3HXQtRc2VA6LJvT+VrjZoY=", + "lastModified": 1701633543, + "narHash": "sha256-8jSNtmM49sTw+VxzPsYpvW56avj3z6ZYv0ME0RDJV5c=", "owner": "jovian-experiments", "repo": "jovian-nixos", - "rev": "365027ec7dc32018b20d3fbe3abf645406651e4c", + "rev": "02a0e03c78d6c21384c8fb3deb09604bf408e245", "type": "github" }, "original": { @@ -331,11 +331,11 @@ }, "nixos-hardware": { "locked": { - "lastModified": 1701250978, - "narHash": "sha256-ohu3cz4edjpGxs2qUTgbs0WrnewOX4crnUJNEB6Jox4=", + "lastModified": 1701598471, + "narHash": "sha256-kHdJ2qc4qKeMTzUIHEcP41ah/dBIhCgvWgrjllt2G78=", "owner": "nixos", "repo": "nixos-hardware", - "rev": "8772491ed75f150f02552c60694e1beff9f46013", + "rev": "a89745edd5f657e2e5be5ed1bea86725ca78d92e", "type": "github" }, "original": { diff --git a/sets/nvim.nix b/sets/nvim.nix index 3e7950e..3767d7c 100644 --- a/sets/nvim.nix +++ b/sets/nvim.nix @@ -72,7 +72,13 @@ in { java-language-server.enable = cfg.plugins.lsp.enable; jsonls.enable = cfg.plugins.lsp.enable; nil_ls.enable = cfg.plugins.lsp.enable; - pylsp.enable = cfg.plugins.lsp.enable; + pylsp = { + enable = cfg.plugins.lsp.enable; + settings.plugins = { + pylsp_mypy.enabled = true; + black.enabled = true; + }; + }; texlab.enable = cfg.plugins.lsp.enable; tsserver.enable = cfg.plugins.lsp.enable; typst-lsp.enable = cfg.plugins.lsp.enable;