aboutsummaryrefslogtreecommitdiff
path: root/lua/user/plugins.lua
diff options
context:
space:
mode:
authorAleksa Vuckovic <aleksa@vuckovic.cc>2023-02-24 03:54:38 +0100
committerAleksa Vuckovic <aleksa@vuckovic.cc>2023-02-24 03:54:38 +0100
commitbbe5d2d967a1a77328c71e11823bb57d56ee044c (patch)
tree1ad4f5ed0ecfd9bce0cc497a0be59ea9cad094fd /lua/user/plugins.lua
parent0703660d49f22376d52a969e8c3cca64480b0f1b (diff)
formatting
Diffstat (limited to 'lua/user/plugins.lua')
-rw-r--r--lua/user/plugins.lua77
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)