summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.config/nvim/init.lua1
-rw-r--r--.config/nvim/lua/justsaumit/cmp-config.lua0
-rw-r--r--.config/nvim/lua/justsaumit/cmp.lua0
-rw-r--r--.config/nvim/lua/justsaumit/plugins.lua12
-rw-r--r--.config/nvim/plugin/packer_compiled.lua30
5 files changed, 37 insertions, 6 deletions
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
--- /dev/null
+++ b/.config/nvim/lua/justsaumit/cmp-config.lua
diff --git a/.config/nvim/lua/justsaumit/cmp.lua b/.config/nvim/lua/justsaumit/cmp.lua
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/.config/nvim/lua/justsaumit/cmp.lua
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",