diff options
| author | Aleksa Vučković <aleksav013@gmail.com> | 2022-01-05 08:57:32 +0100 |
|---|---|---|
| committer | Aleksa Vučković <aleksav013@gmail.com> | 2022-01-05 08:57:32 +0100 |
| commit | 2a5f4d72d21d495408a52a2cad271b1e5775967b (patch) | |
| tree | c1bc1aa2844d32fd89e125db8285ceded2b4187d /lua/plugins.lua | |
| parent | 0eb2af20164f3281b9981386d7ac03713e2f3e01 (diff) | |
cmp_luasnip not working
Diffstat (limited to 'lua/plugins.lua')
| -rw-r--r-- | lua/plugins.lua | 43 |
1 files changed, 22 insertions, 21 deletions
diff --git a/lua/plugins.lua b/lua/plugins.lua index 39d0c8a..3f7c1e8 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -1,14 +1,14 @@ local fn = vim.fn -local install_path = fn.stdpath('data')..'/site/pack/packer/start/packer.nvim' +local install_path = fn.stdpath("data").."/site/pack/packer/start/packer.nvim" if fn.empty(fn.glob(install_path)) > 0 then - packer_bootstrap = fn.system({'git', 'clone', '--depth', '1', 'https://github.com/wbthomason/packer.nvim', install_path}) + packer_bootstrap = fn.system({"git", "clone", "--depth", "1", "https://github.com/wbthomason/packer.nvim", install_path}) end vim.cmd([[ - augroup packer_user_config - autocmd! - autocmd BufWritePost plugins.lua source <afile> | PackerSync - augroup end + augroup packer_user_config + autocmd! + autocmd BufWritePost plugins.lua source <afile> | PackerSync + augroup end ]]) local status, packer = pcall(require, "packer") @@ -17,28 +17,29 @@ if not status then end packer.init { - display = { - open_fn = function() - return require("packer.util").float { border = "rounded" } - end, - }, + display = { + open_fn = function() + return require("packer.util").float { border = "rounded" } + end, + }, } return packer.startup(function(use) -- Packer - use 'wbthomason/packer.nvim' + use "wbthomason/packer.nvim" -- cmp - use 'hrsh7th/nvim-cmp' - use 'hrsh7th/cmp-nvim-lsp' - use 'hrsh7th/cmp-buffer' - use 'hrsh7th/cmp-path' - use 'hrsh7th/cmp-cmdline' + use "hrsh7th/nvim-cmp" + use "saadparwaiz1/cmp_luasnip" +-- use "hrsh7th/cmp-nvim-lsp" +-- use "hrsh7th/cmp-buffer" +-- use "hrsh7th/cmp-path" +-- use "hrsh7th/cmp-cmdline" +-- use "hrsh7th/cmp-nvim-lua" -- snippets - use 'hrsh7th/vim-vsnip' - use 'hrsh7th/cmp-vsnip' --- + use "L3MON4D3/LuaSnip" + -- LSP use "neovim/nvim-lspconfig" use "williamboman/nvim-lsp-installer" @@ -51,6 +52,6 @@ return packer.startup(function(use) -- Automatically set up your configuration after cloning packer.nvim -- Put this at the end after all plugins if packer_bootstrap then - require('packer').sync() + require("packer").sync() end end) |
