From f487bb0dfe99ad7b535feaf403d4ac4d0928a91f Mon Sep 17 00:00:00 2001 From: pegasust Date: Tue, 22 Nov 2022 01:53:03 +0000 Subject: [PATCH] neovim: add path autocomplete --- home-nix/flake.lock | 6 +++--- home-nix/home.nix | 6 ++++-- neovim/init.lua | 2 +- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/home-nix/flake.lock b/home-nix/flake.lock index aa7b5fa..15eee94 100644 --- a/home-nix/flake.lock +++ b/home-nix/flake.lock @@ -69,11 +69,11 @@ "utils": "utils" }, "locked": { - "lastModified": 1669044918, - "narHash": "sha256-Lg5gOmmVlaYKhN2QM6qeZL3HOjbshms2+CJyc+ALt64=", + "lastModified": 1669071065, + "narHash": "sha256-KBpgj3JkvlPsJ3duOZqFJe6tgr+wc75t8sFmgRbBSbw=", "owner": "nix-community", "repo": "home-manager", - "rev": "433e8de330fd9c157b636f9ccea45e3eeaf69ad2", + "rev": "f7641a3ff398ccce952e19a199d775934e518c1d", "type": "github" }, "original": { diff --git a/home-nix/home.nix b/home-nix/home.nix index 8d9d254..5d4a1bf 100644 --- a/home-nix/home.nix +++ b/home-nix/home.nix @@ -28,7 +28,7 @@ pkgs.xorg.xclock pkgs.logseq pkgs.mosh - pkgs.nixops + pkgs.nixops_unstable # pkgs.python310 # dev packages should be in jk # pkgs.python310.numpy # pkgs.python310Packages.tensorflow @@ -77,6 +77,8 @@ enable = true; viAlias = true; vimAlias = true; + withPython3 = true; + withNodeJs = true; # I use vim-plug, so I probably don't require packaging # extraConfig actually writes to init-home-manager.vim (not lua) # https://github.com/nix-community/home-manager/pull/3287 @@ -128,7 +130,7 @@ ]; extraConfig = { # cache credential for 10 minutes. - credential.helper = "cache --timeout=600" + credential.helper = "cache --timeout=600"; }; # why is this no longer valid? # pull = { rebase=true; }; diff --git a/neovim/init.lua b/neovim/init.lua index 49e05e6..f09a86d 100644 --- a/neovim/init.lua +++ b/neovim/init.lua @@ -86,7 +86,7 @@ Plug('nvim-telescope/telescope-file-browser.nvim') -- cmp: auto-complete/suggestions Plug('neovim/nvim-lspconfig') -- built-in LSP configurations Plug('hrsh7th/cmp-nvim-lsp') -Plug('hrsh7th/cmp-nvim-path') +Plug('hrsh7th/cmp-path') Plug('hrsh7th/cmp-buffer') Plug('hrsh7th/cmp-cmdline') Plug('hrsh7th/nvim-cmp')