From 16ee7441f40a71872f8fb6a89da470564e76ce04 Mon Sep 17 00:00:00 2001 From: Saumit Dinesan Date: Sat, 15 Jul 2023 15:49:24 +0530 Subject: nvim: Adding autocompletions- nvim-cmp+luasnip+nvim-lsp+cmdline+path --- .config/nvim/lua/justsaumit/plugins.lua | 29 +++++++++++------------------ 1 file changed, 11 insertions(+), 18 deletions(-) (limited to '.config/nvim/lua/justsaumit/plugins.lua') diff --git a/.config/nvim/lua/justsaumit/plugins.lua b/.config/nvim/lua/justsaumit/plugins.lua index 4d0edd9..c14149b 100644 --- a/.config/nvim/lua/justsaumit/plugins.lua +++ b/.config/nvim/lua/justsaumit/plugins.lua @@ -68,31 +68,24 @@ return packer.startup(function(use) --lsp use("williamboman/mason-lspconfig.nvim") use("neovim/nvim-lspconfig") --> Collection of configurations for built-in LSP client - use("jose-elias-alvarez/null-ls.nvim") --> inject lsp diagnistocs, formattings, code actions, and more ... use("tami5/lspsaga.nvim") --> icons for LSP diagnostics use("onsails/lspkind-nvim") --> vscode-like pictograms for neovim lsp completion items - use("hrsh7th/nvim-cmp") --> Autocompletion plugin - use("hrsh7th/cmp-nvim-lsp") --> LSP source for nvim-cmp - use("saadparwaiz1/cmp_luasnip") --> Snippets source for nvim-cmp - use("L3MON4D3/LuaSnip") --> Snippets plugin +--cmp - Autocompletions + use("hrsh7th/nvim-cmp") --completion engine + use("L3MON4D3/LuaSnip") --snippets engine + use("saadparwaiz1/cmp_luasnip") --luasnip completion source for nvim-cmp +--cmp plugins + use("hrsh7th/cmp-nvim-lsp")--nvim-cmp source for neovim's built-in language server client. + use("hrsh7th/cmp-buffer") --nvim-cmp source for buffer words. + use("hrsh7th/cmp-path") --nvim-cmp source for filesystem path + use("hrsh7th/cmp-cmdline") --nvim-cmp source for vim's cmdline + +-- use("jose-elias-alvarez/null-ls.nvim") --> inject lsp diagnistocs, formattings, code actions, and more ... --HTML -- use 'windwp/nvim-ts-autotag' --Markdown + Zenmode --Telescope use {'nvim-telescope/telescope.nvim', tag = '0.1.2', requires = { {'nvim-lua/plenary.nvim'} }} ---cmp --- use 'hrsh7th/nvim-cmp' ---cmp plugins --- use 'hrsh7th/cmp-buffer' --- use 'hrsh7th/cmp-path' --- use 'hrsh7th/cmp-cmdline' --- use 'hrsh7th/cmp-nvim-lsp' - -- use 'neovim/nvim-lspconfig' - --- use "saadparwaiz1/cmp_luasnip" -- snippet completions - - -- snippets --- use "L3MON4D3/LuaSnip" --snippet engine -- use "rafamadriz/friendly-snippets" -- a bunch of snippets to use -- -- Comments - Toggle comments in Neovim -- cgit v1.2.3