From 74172fd7e79d1f9eceeb3626c53223d2dc64f381 Mon Sep 17 00:00:00 2001 From: Roel de Cort <63876068+dc-tec@users.noreply.github.com> Date: Tue, 11 Jun 2024 15:51:54 +0200 Subject: [PATCH] enable jsonls, helmls and add ansible-vim pkg (#5) Enable JSON Language Server and Helm Language Server. Added ansible-vim package. --- config/plugins/lsp/lsp.nix | 8 +++++- flake.lock | 58 ++++++++++++++++++++++++++++---------- flake.nix | 2 -- 3 files changed, 50 insertions(+), 18 deletions(-) diff --git a/config/plugins/lsp/lsp.nix b/config/plugins/lsp/lsp.nix index d9fad8c..51d6e3f 100644 --- a/config/plugins/lsp/lsp.nix +++ b/config/plugins/lsp/lsp.nix @@ -1,4 +1,4 @@ -{ +{pkgs, ...}: { plugins = { lsp-lines = {enable = true;}; lsp-format = {enable = true;}; @@ -14,6 +14,8 @@ terraformls = {enable = true;}; tsserver = {enable = true;}; ansiblels = {enable = true;}; + jsonls = {enable = true;}; + helm-ls = {enable = true;}; yamlls = { enable = true; extraOptions = { @@ -90,6 +92,10 @@ }; }; }; + extraPlugins = with pkgs.vimPlugins; [ + ansible-vim + ]; + extraConfigLua = '' local _border = "rounded" diff --git a/flake.lock b/flake.lock index 5b75f11..9ef98be 100644 --- a/flake.lock +++ b/flake.lock @@ -239,11 +239,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1717602782, - "narHash": "sha256-pL9jeus5QpX5R+9rsp3hhZ+uplVHscNJh8n8VpqscM0=", + "lastModified": 1717974879, + "narHash": "sha256-GTO3C88+5DX171F/gVS3Qga/hOs/eRMxPFpiHq2t+D8=", "owner": "nixos", "repo": "nixpkgs", - "rev": "e8057b67ebf307f01bdcc8fba94d94f75039d1f6", + "rev": "c7b821ba2e1e635ba5a76d299af62821cbcb09f3", "type": "github" }, "original": { @@ -281,6 +281,38 @@ "type": "github" } }, + "nixpkgs_2": { + "locked": { + "lastModified": 1717786204, + "narHash": "sha256-4q0s6m0GUcN7q+Y2DqD27iLvbcd1G50T2lv08kKxkSI=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "051f920625ab5aabe37c920346e3e69d7d34400e", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixos-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "nixpkgs_3": { + "locked": { + "lastModified": 1710765496, + "narHash": "sha256-p7ryWEeQfMwTB6E0wIUd5V2cFTgq+DRRBz2hYGnJZyA=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "e367f7a1fb93137af22a3908f00b9a35e2d286a7", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixpkgs-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, "nixvim": { "inputs": { "devshell": "devshell", @@ -289,17 +321,15 @@ "git-hooks": "git-hooks", "home-manager": "home-manager", "nix-darwin": "nix-darwin", - "nixpkgs": [ - "nixpkgs" - ], + "nixpkgs": "nixpkgs_2", "treefmt-nix": "treefmt-nix" }, "locked": { - "lastModified": 1717681257, - "narHash": "sha256-0PhFvfc4wDjba1cus2ALsfn0wVizeKkcuF+aqvDJivg=", + "lastModified": 1718098450, + "narHash": "sha256-QDKPhT61Cf82/7G7vMyEfKQSIGGzs33FyT+4RB34spo=", "owner": "nix-community", "repo": "nixvim", - "rev": "36f2e51b28ee3389a67ed5e9ed5c4bd388b06918", + "rev": "7a2d065ccec902c17db71bd2ba3e485a0952f43b", "type": "github" }, "original": { @@ -312,9 +342,7 @@ "inputs": { "flake-compat": "flake-compat_3", "gitignore": "gitignore_2", - "nixpkgs": [ - "nixpkgs" - ], + "nixpkgs": "nixpkgs_3", "nixpkgs-stable": "nixpkgs-stable" }, "locked": { @@ -362,11 +390,11 @@ ] }, "locked": { - "lastModified": 1717278143, - "narHash": "sha256-u10aDdYrpiGOLoxzY/mJ9llST9yO8Q7K/UlROoNxzDw=", + "lastModified": 1717850719, + "narHash": "sha256-npYqVg+Wk4oxnWrnVG7416fpfrlRhp/lQ6wQ4DHI8YE=", "owner": "numtide", "repo": "treefmt-nix", - "rev": "3eb96ca1ae9edf792a8e0963cc92fddfa5a87706", + "rev": "4fc1c45a5f50169f9f29f6a98a438fb910b834ed", "type": "github" }, "original": { diff --git a/flake.nix b/flake.nix index 18855d8..db2a8e6 100644 --- a/flake.nix +++ b/flake.nix @@ -6,11 +6,9 @@ flake-parts.url = "github:hercules-ci/flake-parts"; nixvim = { url = "github:nix-community/nixvim"; - inputs.nixpkgs.follows = "nixpkgs"; }; pre-commit-hooks = { url = "github:cachix/pre-commit-hooks.nix"; - inputs.nixpkgs.follows = "nixpkgs"; }; };