From 054ea4c69bd526191dedbca0833419a67cf43a2f Mon Sep 17 00:00:00 2001 From: Saumit Dinesan Date: Wed, 5 Oct 2022 21:07:27 +0530 Subject: nvim cmp --- .config/nvim/init.lua | 1 + .config/nvim/lua/justsaumit/cmp-config.lua | 0 .config/nvim/lua/justsaumit/cmp.lua | 0 .config/nvim/lua/justsaumit/plugins.lua | 12 ++++++------ .config/nvim/plugin/packer_compiled.lua | 30 ++++++++++++++++++++++++++++++ 5 files changed, 37 insertions(+), 6 deletions(-) create mode 100644 .config/nvim/lua/justsaumit/cmp-config.lua create mode 100644 .config/nvim/lua/justsaumit/cmp.lua diff --git a/.config/nvim/init.lua b/.config/nvim/init.lua index b0c01a8..5486693 100644 --- a/.config/nvim/init.lua +++ b/.config/nvim/init.lua @@ -10,4 +10,5 @@ require("justsaumit.lastplace-config") require("justsaumit.autopairs") require("justsaumit.which-key-config") require("justsaumit.telescope-config") +require("justsaumit.cmp-config") print ("while(!(succeed = try() ) );") diff --git a/.config/nvim/lua/justsaumit/cmp-config.lua b/.config/nvim/lua/justsaumit/cmp-config.lua new file mode 100644 index 0000000..e69de29 diff --git a/.config/nvim/lua/justsaumit/cmp.lua b/.config/nvim/lua/justsaumit/cmp.lua new file mode 100644 index 0000000..e69de29 diff --git a/.config/nvim/lua/justsaumit/plugins.lua b/.config/nvim/lua/justsaumit/plugins.lua index 9d2b36e..5ee81b4 100644 --- a/.config/nvim/lua/justsaumit/plugins.lua +++ b/.config/nvim/lua/justsaumit/plugins.lua @@ -67,12 +67,12 @@ return packer.startup(function(use) --Telescope use {'nvim-telescope/telescope.nvim', tag = '0.1.0', requires = { {'nvim-lua/plenary.nvim'} }} --cmp --- use 'neovim/nvim-lspconfig' --- use 'hrsh7th/cmp-nvim-lsp' --- use 'hrsh7th/cmp-buffer' --- use 'hrsh7th/cmp-path' --- use 'hrsh7th/cmp-cmdline' --- use 'hrsh7th/nvim-cmp' + use 'neovim/nvim-lspconfig' + use 'hrsh7th/cmp-nvim-lsp' + use 'hrsh7th/cmp-buffer' + use 'hrsh7th/cmp-path' + use 'hrsh7th/cmp-cmdline' + use 'hrsh7th/nvim-cmp' --Autopairs for HTML --use {"windwp/nvim-autopairs", wants = "nvim-treesitter", module = { "nvim-autopairs.completion.cmp", "nvim-autopairs" }, config = function() diff --git a/.config/nvim/plugin/packer_compiled.lua b/.config/nvim/plugin/packer_compiled.lua index 3b04a32..ebd2a17 100644 --- a/.config/nvim/plugin/packer_compiled.lua +++ b/.config/nvim/plugin/packer_compiled.lua @@ -79,16 +79,46 @@ _G.packer_plugins = { path = "/home/saumit/.local/share/nvim/site/pack/packer/start/bufferline.nvim", url = "https://github.com/akinsho/bufferline.nvim" }, + ["cmp-buffer"] = { + loaded = true, + path = "/home/saumit/.local/share/nvim/site/pack/packer/start/cmp-buffer", + url = "https://github.com/hrsh7th/cmp-buffer" + }, + ["cmp-cmdline"] = { + loaded = true, + path = "/home/saumit/.local/share/nvim/site/pack/packer/start/cmp-cmdline", + url = "https://github.com/hrsh7th/cmp-cmdline" + }, + ["cmp-nvim-lsp"] = { + loaded = true, + path = "/home/saumit/.local/share/nvim/site/pack/packer/start/cmp-nvim-lsp", + url = "https://github.com/hrsh7th/cmp-nvim-lsp" + }, + ["cmp-path"] = { + loaded = true, + path = "/home/saumit/.local/share/nvim/site/pack/packer/start/cmp-path", + url = "https://github.com/hrsh7th/cmp-path" + }, ["lualine.nvim"] = { loaded = true, path = "/home/saumit/.local/share/nvim/site/pack/packer/start/lualine.nvim", url = "https://github.com/nvim-lualine/lualine.nvim" }, + ["nvim-cmp"] = { + loaded = true, + path = "/home/saumit/.local/share/nvim/site/pack/packer/start/nvim-cmp", + url = "https://github.com/hrsh7th/nvim-cmp" + }, ["nvim-lastplace"] = { loaded = true, path = "/home/saumit/.local/share/nvim/site/pack/packer/start/nvim-lastplace", url = "https://github.com/ethanholz/nvim-lastplace" }, + ["nvim-lspconfig"] = { + loaded = true, + path = "/home/saumit/.local/share/nvim/site/pack/packer/start/nvim-lspconfig", + url = "https://github.com/neovim/nvim-lspconfig" + }, ["nvim-tree.lua"] = { loaded = true, path = "/home/saumit/.local/share/nvim/site/pack/packer/start/nvim-tree.lua", -- cgit v1.2.3