From 71f9ef25a548895b8b5dee41773346a12f5c061e Mon Sep 17 00:00:00 2001 From: Felix Tenley Date: Wed, 30 Mar 2022 11:48:46 +0200 Subject: [PATCH] feat(neovim): setup path completions --- home/editors/neovim/{cmp.lua => completion.lua} | 1 + home/editors/neovim/default.nix | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) rename home/editors/neovim/{cmp.lua => completion.lua} (98%) diff --git a/home/editors/neovim/cmp.lua b/home/editors/neovim/completion.lua similarity index 98% rename from home/editors/neovim/cmp.lua rename to home/editors/neovim/completion.lua index 85afd99..dbcda28 100644 --- a/home/editors/neovim/cmp.lua +++ b/home/editors/neovim/completion.lua @@ -50,6 +50,7 @@ cmp.setup({ sources = cmp.config.sources({ { name = "nvim_lsp" }, { name = "luasnip" }, + { name = "path" }, }, { { name = "buffer" }, }) diff --git a/home/editors/neovim/default.nix b/home/editors/neovim/default.nix index 27e7622..12ae1da 100644 --- a/home/editors/neovim/default.nix +++ b/home/editors/neovim/default.nix @@ -36,6 +36,7 @@ in { luasnip nvim-cmp + cmp-path cmp-buffer cmp-nvim-lsp cmp_luasnip @@ -67,7 +68,7 @@ in { ./which-key.lua ./gitsigns.lua ./test.lua - ./cmp.lua + ./completion.lua ./lsp/extensions.lua ./lsp/lsp.lua ./lsp/mappings.lua