gopls
This commit is contained in:
		
							parent
							
								
									1d2a0559f3
								
							
						
					
					
						commit
						aa1f89c172
					
				
					 3 changed files with 11 additions and 81 deletions
				
			
		
							
								
								
									
										75
									
								
								flake.lock
									
									
									
									
									
								
							
							
						
						
									
										75
									
								
								flake.lock
									
									
									
									
									
								
							| 
						 | 
				
			
			@ -5,29 +5,11 @@
 | 
			
		|||
        "systems": "systems"
 | 
			
		||||
      },
 | 
			
		||||
      "locked": {
 | 
			
		||||
        "lastModified": 1701680307,
 | 
			
		||||
        "narHash": "sha256-kAuep2h5ajznlPMD9rnQyffWG8EM/C73lejGofXvdM8=",
 | 
			
		||||
        "lastModified": 1705309234,
 | 
			
		||||
        "narHash": "sha256-uNRRNRKmJyCRC/8y1RqBkqWBLM034y4qN7EprSdmgyA=",
 | 
			
		||||
        "owner": "numtide",
 | 
			
		||||
        "repo": "flake-utils",
 | 
			
		||||
        "rev": "4022d587cbbfd70fe950c1e2083a02621806a725",
 | 
			
		||||
        "type": "github"
 | 
			
		||||
      },
 | 
			
		||||
      "original": {
 | 
			
		||||
        "owner": "numtide",
 | 
			
		||||
        "repo": "flake-utils",
 | 
			
		||||
        "type": "github"
 | 
			
		||||
      }
 | 
			
		||||
    },
 | 
			
		||||
    "flake-utils_2": {
 | 
			
		||||
      "inputs": {
 | 
			
		||||
        "systems": "systems_2"
 | 
			
		||||
      },
 | 
			
		||||
      "locked": {
 | 
			
		||||
        "lastModified": 1694529238,
 | 
			
		||||
        "narHash": "sha256-zsNZZGTGnMOf9YpHKJqMSsa0dXbfmxeoJ7xHlrt+xmY=",
 | 
			
		||||
        "owner": "numtide",
 | 
			
		||||
        "repo": "flake-utils",
 | 
			
		||||
        "rev": "ff7b65b44d01cf9ba6a71320833626af21126384",
 | 
			
		||||
        "rev": "1ef2e671c3b0c19053962c07dbda38332dcebf26",
 | 
			
		||||
        "type": "github"
 | 
			
		||||
      },
 | 
			
		||||
      "original": {
 | 
			
		||||
| 
						 | 
				
			
			@ -43,11 +25,11 @@
 | 
			
		|||
        ]
 | 
			
		||||
      },
 | 
			
		||||
      "locked": {
 | 
			
		||||
        "lastModified": 1702937117,
 | 
			
		||||
        "narHash": "sha256-4GjkL2D01bDg00UZN/SeGrnBZrDVOFeZTbQx6U702Vc=",
 | 
			
		||||
        "lastModified": 1707683400,
 | 
			
		||||
        "narHash": "sha256-Zc+J3UO1Xpx+NL8UB6woPHyttEy9cXXtm+0uWwzuYDc=",
 | 
			
		||||
        "owner": "nix-community",
 | 
			
		||||
        "repo": "home-manager",
 | 
			
		||||
        "rev": "e8aaced73ebaf6bfa8e3c6ab0a19cb184bc4d798",
 | 
			
		||||
        "rev": "21b078306a2ab68748abf72650db313d646cf2ca",
 | 
			
		||||
        "type": "github"
 | 
			
		||||
      },
 | 
			
		||||
      "original": {
 | 
			
		||||
| 
						 | 
				
			
			@ -56,36 +38,13 @@
 | 
			
		|||
        "type": "github"
 | 
			
		||||
      }
 | 
			
		||||
    },
 | 
			
		||||
    "neovim": {
 | 
			
		||||
      "inputs": {
 | 
			
		||||
        "flake-utils": "flake-utils_2",
 | 
			
		||||
        "nixpkgs": [
 | 
			
		||||
          "nixpkgs"
 | 
			
		||||
        ]
 | 
			
		||||
      },
 | 
			
		||||
      "locked": {
 | 
			
		||||
        "dir": "contrib",
 | 
			
		||||
        "lastModified": 1702997198,
 | 
			
		||||
        "narHash": "sha256-wWgZPuTxboDZgn09xC87118ujGaNv/5iaDFCsyxbqTk=",
 | 
			
		||||
        "owner": "neovim",
 | 
			
		||||
        "repo": "neovim",
 | 
			
		||||
        "rev": "49efdf84139a0c0f7ba0217e5ab665bc4f222206",
 | 
			
		||||
        "type": "github"
 | 
			
		||||
      },
 | 
			
		||||
      "original": {
 | 
			
		||||
        "dir": "contrib",
 | 
			
		||||
        "owner": "neovim",
 | 
			
		||||
        "repo": "neovim",
 | 
			
		||||
        "type": "github"
 | 
			
		||||
      }
 | 
			
		||||
    },
 | 
			
		||||
    "nixpkgs": {
 | 
			
		||||
      "locked": {
 | 
			
		||||
        "lastModified": 1702900294,
 | 
			
		||||
        "narHash": "sha256-pt7sSoJYNw3n8YtXw0Z/Nnr6/PfY2YrjDvqboErXnRM=",
 | 
			
		||||
        "lastModified": 1707743206,
 | 
			
		||||
        "narHash": "sha256-AehgH64b28yKobC/DAWYZWkJBxL/vP83vkY+ag2Hhy4=",
 | 
			
		||||
        "owner": "nixos",
 | 
			
		||||
        "repo": "nixpkgs",
 | 
			
		||||
        "rev": "886c9aee6ca9324e127f9c2c4e6f68c2641c8256",
 | 
			
		||||
        "rev": "2d627a2a704708673e56346fcb13d25344b8eaf3",
 | 
			
		||||
        "type": "github"
 | 
			
		||||
      },
 | 
			
		||||
      "original": {
 | 
			
		||||
| 
						 | 
				
			
			@ -99,7 +58,6 @@
 | 
			
		|||
      "inputs": {
 | 
			
		||||
        "flake-utils": "flake-utils",
 | 
			
		||||
        "home-manager": "home-manager",
 | 
			
		||||
        "neovim": "neovim",
 | 
			
		||||
        "nixpkgs": "nixpkgs"
 | 
			
		||||
      }
 | 
			
		||||
    },
 | 
			
		||||
| 
						 | 
				
			
			@ -117,21 +75,6 @@
 | 
			
		|||
        "repo": "default",
 | 
			
		||||
        "type": "github"
 | 
			
		||||
      }
 | 
			
		||||
    },
 | 
			
		||||
    "systems_2": {
 | 
			
		||||
      "locked": {
 | 
			
		||||
        "lastModified": 1681028828,
 | 
			
		||||
        "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
 | 
			
		||||
        "owner": "nix-systems",
 | 
			
		||||
        "repo": "default",
 | 
			
		||||
        "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
 | 
			
		||||
        "type": "github"
 | 
			
		||||
      },
 | 
			
		||||
      "original": {
 | 
			
		||||
        "owner": "nix-systems",
 | 
			
		||||
        "repo": "default",
 | 
			
		||||
        "type": "github"
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  "root": "root",
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										15
									
								
								flake.nix
									
									
									
									
									
								
							
							
						
						
									
										15
									
								
								flake.nix
									
									
									
									
									
								
							| 
						 | 
				
			
			@ -9,14 +9,9 @@
 | 
			
		|||
      url = "github:nix-community/home-manager";
 | 
			
		||||
      inputs.nixpkgs.follows = "nixpkgs";
 | 
			
		||||
    };
 | 
			
		||||
 | 
			
		||||
    neovim = {
 | 
			
		||||
      url = "github:neovim/neovim?dir=contrib";
 | 
			
		||||
      inputs.nixpkgs.follows = "nixpkgs";
 | 
			
		||||
    };
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  outputs = { nixpkgs, home-manager, flake-utils, neovim, ... }:
 | 
			
		||||
  outputs = { nixpkgs, home-manager, flake-utils, ... }:
 | 
			
		||||
    flake-utils.lib.eachDefaultSystem (system:
 | 
			
		||||
      let
 | 
			
		||||
        user = "nikos"; # change your user here
 | 
			
		||||
| 
						 | 
				
			
			@ -31,14 +26,6 @@
 | 
			
		|||
          # the path to your home.nix.
 | 
			
		||||
          modules = [
 | 
			
		||||
            ./home.nix
 | 
			
		||||
 | 
			
		||||
            {
 | 
			
		||||
              nixpkgs.overlays = [
 | 
			
		||||
                (final: prev: {
 | 
			
		||||
                  neovim = neovim.packages.${system}.neovim;
 | 
			
		||||
                })
 | 
			
		||||
              ];
 | 
			
		||||
            }
 | 
			
		||||
          ];
 | 
			
		||||
 | 
			
		||||
          extraSpecialArgs = { extra = { inherit user dotfilesHome; }; };
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										2
									
								
								home.nix
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								home.nix
									
									
									
									
									
								
							| 
						 | 
				
			
			@ -72,12 +72,12 @@
 | 
			
		|||
  programs.neovim = {
 | 
			
		||||
    enable = true;
 | 
			
		||||
    defaultEditor = true;
 | 
			
		||||
    package = pkgs.neovim;
 | 
			
		||||
    extraPackages = [
 | 
			
		||||
      pkgs.nil # Nix lsp
 | 
			
		||||
      pkgs.nixpkgs-fmt # Nix formatter
 | 
			
		||||
      pkgs.efm-langserver # Generic language server
 | 
			
		||||
      pkgs.lua-language-server
 | 
			
		||||
      pkgs.gopls
 | 
			
		||||
    ];
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue