2022-10-19 00:47:07 +01:00
|
|
|
local packer = require("packer")
|
|
|
|
|
2022-12-15 04:18:13 +00:00
|
|
|
local plugins = packer.startup({ function(use)
|
2022-10-19 00:47:07 +01:00
|
|
|
|
|
|
|
use {
|
|
|
|
"wbthomason/packer.nvim",
|
|
|
|
config = [[require("plugins.packer")]]
|
|
|
|
}
|
|
|
|
|
2022-12-15 04:18:13 +00:00
|
|
|
use { "lewis6991/impatient.nvim" }
|
2022-10-19 00:47:07 +01:00
|
|
|
|
|
|
|
|
2022-12-15 04:18:13 +00:00
|
|
|
use { "lervag/vimtex",
|
|
|
|
config = function()
|
2022-11-07 03:25:06 +00:00
|
|
|
require "plugins.vimtex"
|
|
|
|
end
|
|
|
|
}
|
|
|
|
|
2022-12-06 15:52:28 +00:00
|
|
|
-------------------------------------------------------QOL----------------------------------------------
|
|
|
|
|
2022-12-15 04:18:13 +00:00
|
|
|
use { "ggandor/leap.nvim",
|
|
|
|
config = function()
|
2022-11-07 03:25:06 +00:00
|
|
|
require('leap').add_default_mappings()
|
|
|
|
end
|
|
|
|
}
|
|
|
|
|
2022-12-15 04:18:13 +00:00
|
|
|
use { 'stevearc/dressing.nvim' } -- Rename variable pop up
|
2022-12-06 15:52:28 +00:00
|
|
|
|
2022-12-15 04:18:13 +00:00
|
|
|
use { "windwp/nvim-autopairs",
|
|
|
|
config = function() require("nvim-autopairs").setup {}
|
2022-12-06 15:52:28 +00:00
|
|
|
end
|
|
|
|
}
|
2022-12-09 10:52:00 +00:00
|
|
|
|
2022-12-15 04:18:13 +00:00
|
|
|
use { 'kyazdani42/nvim-web-devicons' }
|
2022-12-09 10:52:00 +00:00
|
|
|
|
|
|
|
use {
|
|
|
|
'nvim-lualine/lualine.nvim',
|
|
|
|
requires = { 'kyazdani42/nvim-web-devicons', opt = true },
|
2022-12-15 04:18:13 +00:00
|
|
|
config = function()
|
2022-12-09 10:52:00 +00:00
|
|
|
require 'plugins.lualine'
|
|
|
|
end
|
|
|
|
}
|
2022-12-15 04:18:13 +00:00
|
|
|
|
|
|
|
use { 'rcarriga/nvim-notify',
|
|
|
|
config = function()
|
|
|
|
vim.notify = require("notify")
|
|
|
|
end
|
|
|
|
}
|
2022-12-06 15:52:28 +00:00
|
|
|
-------------------------------------------------------LSP----------------------------------------------
|
|
|
|
|
2022-12-15 04:18:13 +00:00
|
|
|
use { "williamboman/mason.nvim",
|
|
|
|
config = function()
|
2022-12-06 15:52:28 +00:00
|
|
|
require "plugins.mason"
|
2022-11-07 03:25:06 +00:00
|
|
|
end
|
|
|
|
}
|
2022-10-19 00:47:07 +01:00
|
|
|
|
2022-12-15 04:18:13 +00:00
|
|
|
use { "williamboman/mason-lspconfig.nvim" }
|
2022-11-17 01:30:44 +00:00
|
|
|
|
2022-12-15 04:18:13 +00:00
|
|
|
use { "neovim/nvim-lspconfig",
|
|
|
|
config = function()
|
2022-12-06 15:52:28 +00:00
|
|
|
require "plugins.lspconfig"
|
|
|
|
end
|
2022-11-14 03:00:43 +00:00
|
|
|
}
|
|
|
|
|
2022-12-15 04:18:13 +00:00
|
|
|
use { "jose-elias-alvarez/null-ls.nvim",
|
|
|
|
config = function()
|
|
|
|
require "plugins.null-ls"
|
|
|
|
end
|
|
|
|
}
|
|
|
|
|
2022-12-06 15:52:28 +00:00
|
|
|
use { "L3MON4D3/LuaSnip",
|
|
|
|
requires = {
|
|
|
|
"rafamadriz/friendly-snippets",
|
|
|
|
"saadparwaiz1/cmp_luasnip"
|
|
|
|
},
|
|
|
|
}
|
|
|
|
--------------------------------------------------SUGGESTION BOX-----------------------------------------
|
|
|
|
use { "hrsh7th/nvim-cmp",
|
2022-12-06 17:17:39 +00:00
|
|
|
requires = {
|
|
|
|
'hrsh7th/cmp-nvim-lsp', -- lsp
|
|
|
|
'hrsh7th/cmp-buffer', --buffer completions
|
|
|
|
'hrsh7th/cmp-path', --path completions
|
|
|
|
'hrsh7th/cmp-cmdline' --cmdline completions
|
|
|
|
},
|
2022-12-06 15:52:28 +00:00
|
|
|
config = function()
|
|
|
|
require "plugins.cmp"
|
|
|
|
end
|
2022-11-17 01:30:44 +00:00
|
|
|
}
|
2022-12-06 17:17:39 +00:00
|
|
|
|
2022-10-19 00:47:07 +01:00
|
|
|
|
2022-12-15 04:18:13 +00:00
|
|
|
use { 'nvim-tree/nvim-tree.lua',
|
2022-12-06 15:52:28 +00:00
|
|
|
requires = {
|
|
|
|
'nvim-tree/nvim-web-devicons', -- optional, for file icons
|
|
|
|
},
|
|
|
|
config = function()
|
|
|
|
require("nvim-tree").setup()
|
|
|
|
end
|
2022-11-14 03:00:43 +00:00
|
|
|
}
|
2022-12-15 04:18:13 +00:00
|
|
|
use { "feline-nvim/feline.nvim" }
|
2022-12-09 10:52:00 +00:00
|
|
|
-------------------------------------------THEMES------------------------------------------
|
2022-10-19 00:47:07 +01:00
|
|
|
|
2022-12-15 04:18:13 +00:00
|
|
|
use { "joshdick/onedark.vim" }
|
|
|
|
use { "catppuccin/nvim" }
|
2022-12-09 10:52:00 +00:00
|
|
|
-------------------------------------------------------------------------------------------
|
2022-12-15 04:18:13 +00:00
|
|
|
use { "nvim-treesitter/nvim-treesitter",
|
2022-10-19 00:47:07 +01:00
|
|
|
config = function()
|
|
|
|
require "plugins.treesitter"
|
|
|
|
end
|
2022-11-07 03:25:06 +00:00
|
|
|
}
|
2022-10-19 00:47:07 +01:00
|
|
|
|
2022-12-15 04:18:13 +00:00
|
|
|
use { "nvim-treesitter/nvim-treesitter-context",
|
2022-12-09 09:41:34 +00:00
|
|
|
config = function()
|
|
|
|
require "plugins.treesitter-context"
|
|
|
|
end
|
|
|
|
}
|
|
|
|
|
2022-11-14 03:00:43 +00:00
|
|
|
--Tabs
|
2022-12-15 04:18:13 +00:00
|
|
|
use { 'romgrk/barbar.nvim',
|
2022-10-19 00:47:07 +01:00
|
|
|
requires = 'kyazdani42/nvim-web-devicons',
|
2022-12-15 04:18:13 +00:00
|
|
|
config = function()
|
2022-11-07 03:25:06 +00:00
|
|
|
require "plugins.barbar"
|
2022-10-19 00:47:07 +01:00
|
|
|
end
|
|
|
|
}
|
|
|
|
|
2022-11-14 03:00:43 +00:00
|
|
|
--fuzzy file finding
|
2022-11-07 03:25:06 +00:00
|
|
|
use {
|
|
|
|
'nvim-telescope/telescope.nvim', tag = '0.1.0',
|
|
|
|
-- or , branch = '0.1.x',
|
2022-12-15 04:18:13 +00:00
|
|
|
requires = { { 'nvim-lua/plenary.nvim' } },
|
2022-11-07 03:25:06 +00:00
|
|
|
config = function() require('plugins.telescope') end
|
|
|
|
}
|
2022-11-14 03:00:43 +00:00
|
|
|
|
2022-12-15 04:18:13 +00:00
|
|
|
use { "tpope/vim-surround" }
|
2022-11-14 03:00:43 +00:00
|
|
|
|
2022-12-15 04:18:13 +00:00
|
|
|
use { "startup-nvim/startup.nvim",
|
|
|
|
requires = { "nvim-telescope/telescope.nvim", "nvim-lua/plenary.nvim" },
|
2022-12-06 15:52:28 +00:00
|
|
|
config = function()
|
|
|
|
require("startup").setup { theme = "dashboard" }
|
|
|
|
end,
|
2022-11-14 03:00:43 +00:00
|
|
|
}
|
2022-12-06 15:52:28 +00:00
|
|
|
|
2022-12-15 04:18:13 +00:00
|
|
|
end,
|
2022-12-06 15:52:28 +00:00
|
|
|
|
2022-10-19 00:47:07 +01:00
|
|
|
config = {
|
2022-11-07 03:25:06 +00:00
|
|
|
auto_clean = true,
|
|
|
|
compile_on_sync = true,
|
|
|
|
git = { clone_timeout = 6000 },
|
|
|
|
display = {
|
|
|
|
working_sym = "ﲊ",
|
|
|
|
error_sym = "✗ ",
|
|
|
|
done_sym = " ",
|
|
|
|
removed_sym = " ",
|
|
|
|
moved_sym = "",
|
2022-12-15 04:18:13 +00:00
|
|
|
},
|
2022-10-19 00:47:07 +01:00
|
|
|
}
|
|
|
|
})
|