diff options
Diffstat (limited to 'lua/user/plugins.lua')
| -rw-r--r-- | lua/user/plugins.lua | 77 |
1 files changed, 39 insertions, 38 deletions
diff --git a/lua/user/plugins.lua b/lua/user/plugins.lua index a3fd1f2..3129e1b 100644 --- a/lua/user/plugins.lua +++ b/lua/user/plugins.lua @@ -1,8 +1,9 @@ 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}) - vim.cmd [[packadd packer.nvim]] + packer_bootstrap = fn.system({ "git", "clone", "--depth", "1", "https://github.com/wbthomason/packer.nvim", + install_path }) + vim.cmd [[packadd packer.nvim]] end -- Autocommand that reloads neovim whenever you save the plugins.lua file @@ -15,51 +16,51 @@ vim.cmd([[ local status, packer = pcall(require, "packer") if not status then - return + return 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" + -- Packer + use "wbthomason/packer.nvim" --- cmp - 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" + -- cmp + 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" --- LSP, linters & formatters - use "neovim/nvim-lspconfig" - use "williamboman/mason.nvim" - use "williamboman/mason-lspconfig.nvim" - use "nvim-lua/plenary.nvim" - use "jose-elias-alvarez/null-ls.nvim" - use "jay-babu/mason-null-ls.nvim" + -- LSP, linters & formatters + use "neovim/nvim-lspconfig" + use "williamboman/mason.nvim" + use "williamboman/mason-lspconfig.nvim" + use "nvim-lua/plenary.nvim" + use "jose-elias-alvarez/null-ls.nvim" + use "jay-babu/mason-null-ls.nvim" --- Colorsheme - use "morhetz/gruvbox" + -- Colorsheme + use "morhetz/gruvbox" --- Other - use "windwp/nvim-autopairs" - use "kyazdani42/nvim-web-devicons" - use "kyazdani42/nvim-tree.lua" - use "akinsho/bufferline.nvim" + -- Other + use "windwp/nvim-autopairs" + use "kyazdani42/nvim-web-devicons" + use "kyazdani42/nvim-tree.lua" + use "akinsho/bufferline.nvim" - -- Automatically set up your configuration after cloning packer.nvim - -- Put this at the end after all plugins - if packer_bootstrap then - require("packer").sync() - end + -- Automatically set up your configuration after cloning packer.nvim + -- Put this at the end after all plugins + if packer_bootstrap then + require("packer").sync() + end end) |
