From 6c1c6ba2f5b45c0c3ba178ee34a9992ce23b7180 Mon Sep 17 00:00:00 2001 From: Aleksa Vučković Date: Wed, 5 Jan 2022 15:35:38 +0100 Subject: ccls working as intended --- lua/user/plugins.lua | 59 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 lua/user/plugins.lua (limited to 'lua/user/plugins.lua') diff --git a/lua/user/plugins.lua b/lua/user/plugins.lua new file mode 100644 index 0000000..d1e7c69 --- /dev/null +++ b/lua/user/plugins.lua @@ -0,0 +1,59 @@ +local fn = vim.fn +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]] +end + +-- Autocommand that reloads neovim whenever you save the plugins.lua file +vim.cmd([[ + augroup packer_user_config + autocmd! + autocmd BufWritePost plugins.lua source | PackerSync + augroup end +]]) + +local status, packer = pcall(require, "packer") +if not status then + return +end + +packer.init { + display = { + open_fn = function() + return require("packer.util").float { border = "rounded" } + end, + }, +} + +return packer.startup(function(use) +-- 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" + +-- snippets + use "L3MON4D3/LuaSnip" + +-- LSP + use "neovim/nvim-lspconfig" + use "williamboman/nvim-lsp-installer" + +-- Other + 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 +end) -- cgit v1.2.3