diff options
author | Brian Picciano <me@mediocregopher.com> | 2024-10-07 12:27:32 +0200 |
---|---|---|
committer | Brian Picciano <me@mediocregopher.com> | 2024-10-07 12:27:32 +0200 |
commit | f89306dc0ed05fc56de2cfcaecab4558c82ff122 (patch) | |
tree | 84e2c280cc6aff08574a51124e6a472a078af4e4 | |
parent | 345922593aa2b79f7e7a62cf32a4265bd632e674 (diff) |
Don't include gopls with nvim
-rw-r--r-- | nvim/default.nix | 27 |
1 files changed, 1 insertions, 26 deletions
diff --git a/nvim/default.nix b/nvim/default.nix index 4e108f0..a1a2aa6 100644 --- a/nvim/default.nix +++ b/nvim/default.nix @@ -2,29 +2,6 @@ pkgs = (import ../pkgs.nix).stable {}; - gopls = pkgs.buildGoModule rec { - pname = "gopls"; - version = "0.16.2"; - - src = "${pkgs.fetchFromGitHub { - owner = "golang"; - repo = "tools"; - rev = "gopls/v${version}"; - sha256 = "sha256-amy00VMUcmyjDoZ4d9/+YswfcZ+1/cGvFsA4sAmc1dA="; - }}/gopls"; - - subPackages = ["."]; - vendorHash = "sha256-ta94xPboFtSxFeuMtPX76XiC1O7osNl4oLk64wIyyz4="; - doCheck = false; - }; - - env = pkgs.buildEnv { - name = "nvim-env"; - paths = [ - gopls - ]; - }; - init = pkgs.writeText "nvim-init.lua" '' vim.cmd('source ${pkgs.vimPlugins.vim-plug}/plug.vim') @@ -47,9 +24,7 @@ ${builtins.readFile ./init.lua} ''; - nvim = pkgs.writeScriptBin "nvim" '' - #!${pkgs.bash}/bin/bash - export PATH=${env}/bin:$PATH + nvim = pkgs.writeShellScriptBin "nvim" '' exec ${pkgs.neovim}/bin/nvim -u ${init} "$@" ''; } |