diff options
author | Saumit Dinesan <justsaumit@protonmail.com> | 2022-10-05 21:07:27 +0530 |
---|---|---|
committer | Saumit Dinesan <justsaumit@protonmail.com> | 2022-10-05 21:07:27 +0530 |
commit | 054ea4c69bd526191dedbca0833419a67cf43a2f (patch) | |
tree | 8bc13a1aa05199e6ff466481dba378ee26e87f2d | |
parent | ba8cf40f6e69fdb66e19dc29c696d5acf02fc22a (diff) |
nvim cmp
-rw-r--r-- | .config/nvim/init.lua | 1 | ||||
-rw-r--r-- | .config/nvim/lua/justsaumit/cmp-config.lua | 0 | ||||
-rw-r--r-- | .config/nvim/lua/justsaumit/cmp.lua | 0 | ||||
-rw-r--r-- | .config/nvim/lua/justsaumit/plugins.lua | 12 | ||||
-rw-r--r-- | .config/nvim/plugin/packer_compiled.lua | 30 |
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", |