2022-12-20 18:38:23 +01:00
|
|
|
local plugins = {
|
2022-09-02 16:15:54 +02:00
|
|
|
|
2022-12-20 18:38:23 +01:00
|
|
|
"nvim-lua/plenary.nvim",
|
2022-10-24 15:24:37 +02:00
|
|
|
---------------------
|
|
|
|
-- Theming Section --
|
|
|
|
---------------------
|
|
|
|
|
2022-12-20 18:38:23 +01:00
|
|
|
"rktjmp/fwatch.nvim", -- d to check dark/light theme
|
|
|
|
{ "catppuccin/nvim", name = "catppuccin" },
|
|
|
|
|
|
|
|
"nvim-lualine/lualine.nvim",
|
2022-09-02 16:15:54 +02:00
|
|
|
|
2022-10-24 15:24:37 +02:00
|
|
|
--------------------
|
|
|
|
-- Layout Plugins --
|
|
|
|
--------------------
|
2022-12-23 02:32:21 +01:00
|
|
|
{ "mbbill/undotree", lazy = false },
|
2022-12-20 18:38:23 +01:00
|
|
|
{
|
2022-11-19 18:38:42 +01:00
|
|
|
"petertriho/nvim-scrollbar",
|
|
|
|
config = function()
|
|
|
|
require("configs.scrollbar")
|
2022-12-13 11:30:23 +01:00
|
|
|
end,
|
2022-12-20 18:38:23 +01:00
|
|
|
},
|
|
|
|
{
|
2022-11-19 18:38:42 +01:00
|
|
|
"lewis6991/gitsigns.nvim",
|
|
|
|
config = function()
|
2022-12-13 11:30:23 +01:00
|
|
|
require("gitsigns").setup()
|
|
|
|
end,
|
2022-12-20 18:38:23 +01:00
|
|
|
},
|
|
|
|
"akinsho/nvim-toggleterm.lua",
|
|
|
|
{
|
2022-12-13 11:30:23 +01:00
|
|
|
"akinsho/git-conflict.nvim",
|
|
|
|
config = function()
|
2022-12-20 18:38:23 +01:00
|
|
|
-- require("git-conflict").setup()
|
2022-12-13 11:30:23 +01:00
|
|
|
end,
|
2022-12-20 18:38:23 +01:00
|
|
|
},
|
|
|
|
{
|
2022-10-24 15:24:37 +02:00
|
|
|
"rcarriga/nvim-notify",
|
|
|
|
config = function()
|
|
|
|
require("configs.notify")
|
|
|
|
end,
|
|
|
|
event = "VimEnter",
|
2022-12-20 18:38:23 +01:00
|
|
|
},
|
|
|
|
{
|
2022-10-24 15:24:37 +02:00
|
|
|
"kyazdani42/nvim-tree.lua",
|
2022-12-20 18:38:23 +01:00
|
|
|
cmd = "NvimTreeToggle",
|
|
|
|
dependencies = { "kyazdani42/nvim-web-devicons" },
|
2022-10-24 15:24:37 +02:00
|
|
|
config = function()
|
|
|
|
require("configs.tree")
|
|
|
|
end,
|
2022-12-20 18:38:23 +01:00
|
|
|
},
|
|
|
|
"nvim-lua/popup.nvim",
|
|
|
|
"goolord/alpha-nvim", -- startup screen
|
|
|
|
{
|
2022-10-24 15:24:37 +02:00
|
|
|
"numToStr/Comment.nvim",
|
|
|
|
event = "BufReadPre",
|
2022-09-02 16:15:54 +02:00
|
|
|
config = function()
|
2022-10-24 15:24:37 +02:00
|
|
|
require("Comment").setup()
|
2022-09-02 16:15:54 +02:00
|
|
|
end,
|
2022-12-20 18:38:23 +01:00
|
|
|
},
|
|
|
|
"glepnir/lspsaga.nvim", -- better windows for lsp replace, goto definition etc...
|
2022-10-24 15:24:37 +02:00
|
|
|
---------------------
|
|
|
|
-- Code Navigation --
|
|
|
|
---------------------
|
2022-12-20 18:38:23 +01:00
|
|
|
"junegunn/fzf",
|
|
|
|
{
|
2022-11-16 23:37:05 +01:00
|
|
|
"ggandor/leap.nvim",
|
2022-10-30 20:58:59 +01:00
|
|
|
config = function()
|
|
|
|
local leap = require("leap")
|
|
|
|
leap.add_default_mappings()
|
|
|
|
leap.setup({})
|
2022-11-16 23:37:05 +01:00
|
|
|
end,
|
2022-12-20 18:38:23 +01:00
|
|
|
},
|
|
|
|
{
|
2022-10-24 15:24:37 +02:00
|
|
|
"nvim-telescope/telescope.nvim",
|
|
|
|
config = function()
|
|
|
|
require("configs.telescope")
|
|
|
|
end,
|
2022-12-20 18:38:23 +01:00
|
|
|
},
|
|
|
|
-- "ThePrimeagen/harpoon",
|
2022-10-24 15:24:37 +02:00
|
|
|
---------------
|
|
|
|
-- Lsp Setup --
|
|
|
|
---------------
|
2022-12-20 18:38:23 +01:00
|
|
|
"arkav/lualine-lsp-progress",
|
|
|
|
"neovim/nvim-lspconfig",
|
|
|
|
"williamboman/mason.nvim",
|
|
|
|
"williamboman/mason-lspconfig.nvim",
|
|
|
|
"jose-elias-alvarez/null-ls.nvim",
|
|
|
|
-- "folke/lsp-colors.nvim",
|
|
|
|
{
|
2022-09-02 16:15:54 +02:00
|
|
|
"folke/trouble.nvim",
|
2022-10-24 15:24:37 +02:00
|
|
|
event = "BufRead",
|
2022-09-02 16:15:54 +02:00
|
|
|
requires = "kyazdani42/nvim-web-devicons",
|
|
|
|
config = function()
|
|
|
|
require("trouble").setup({})
|
|
|
|
end,
|
2022-12-20 18:38:23 +01:00
|
|
|
},
|
|
|
|
"onsails/lspkind.nvim",
|
|
|
|
{
|
|
|
|
url = "https://git.sr.ht/~whynothugo/lsp_lines.nvim",
|
2022-10-24 15:24:37 +02:00
|
|
|
event = "BufReadPre",
|
2022-09-02 16:15:54 +02:00
|
|
|
config = function()
|
|
|
|
require("lsp_lines").setup()
|
|
|
|
end,
|
2022-12-20 18:38:23 +01:00
|
|
|
},
|
2022-10-24 15:24:37 +02:00
|
|
|
-------------------
|
|
|
|
-- Autocomplete --
|
|
|
|
-------------------
|
2022-12-20 18:38:23 +01:00
|
|
|
"tpope/vim-surround",
|
|
|
|
{
|
2022-10-24 15:24:37 +02:00
|
|
|
"hrsh7th/nvim-cmp",
|
2022-12-20 18:38:23 +01:00
|
|
|
dependencies = {
|
2022-10-24 15:24:37 +02:00
|
|
|
"rafamadriz/friendly-snippets",
|
|
|
|
"saadparwaiz1/cmp_luasnip",
|
|
|
|
"L3MON4D3/LuaSnip",
|
|
|
|
"windwp/nvim-autopairs",
|
|
|
|
|
2022-12-28 15:00:42 +01:00
|
|
|
"kristijanhusak/vim-dadbod-completion",
|
2022-10-24 15:24:37 +02:00
|
|
|
"zbirenbaum/copilot.lua",
|
|
|
|
"zbirenbaum/copilot-cmp",
|
2022-12-20 18:38:23 +01:00
|
|
|
"hrsh7th/cmp-nvim-lsp",
|
|
|
|
"hrsh7th/cmp-cmdline",
|
|
|
|
"hrsh7th/cmp-path",
|
|
|
|
"hrsh7th/cmp-nvim-lua",
|
|
|
|
"hrsh7th/cmp-calc",
|
|
|
|
"hrsh7th/cmp-emoji",
|
2022-10-24 15:24:37 +02:00
|
|
|
},
|
2022-12-20 18:38:23 +01:00
|
|
|
event = "InsertEnter",
|
2022-09-19 20:32:50 +02:00
|
|
|
config = function()
|
2022-11-19 18:38:42 +01:00
|
|
|
vim.schedule(function()
|
|
|
|
require("configs.autocomplete")
|
|
|
|
require("configs.snippets")
|
|
|
|
end)
|
2022-09-19 20:32:50 +02:00
|
|
|
end,
|
2022-12-20 18:38:23 +01:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"nat-418/boole.nvim",
|
2022-10-24 15:24:37 +02:00
|
|
|
event = "BufReadPre",
|
|
|
|
config = function()
|
|
|
|
require("boole").setup()
|
|
|
|
end,
|
2022-12-20 18:38:23 +01:00
|
|
|
},
|
|
|
|
{
|
2022-10-24 15:24:37 +02:00
|
|
|
"gaoDean/autolist.nvim",
|
|
|
|
event = "BufReadPre",
|
|
|
|
config = function()
|
|
|
|
require("autolist").setup({})
|
|
|
|
end,
|
2022-12-20 18:38:23 +01:00
|
|
|
},
|
2022-10-24 15:24:37 +02:00
|
|
|
-------------------------
|
|
|
|
-- Syntax Highlighting --
|
|
|
|
-------------------------
|
2022-12-20 18:38:23 +01:00
|
|
|
{
|
2022-10-24 15:24:37 +02:00
|
|
|
"nvim-treesitter/nvim-treesitter",
|
|
|
|
event = "BufReadPost",
|
|
|
|
requires = {
|
|
|
|
"nvim-treesitter/nvim-treesitter-textobjects",
|
|
|
|
},
|
|
|
|
config = function()
|
|
|
|
require("configs.treesitter")
|
|
|
|
end,
|
|
|
|
run = ":TSUpdate",
|
2022-12-20 18:38:23 +01:00
|
|
|
},
|
2022-10-24 15:24:37 +02:00
|
|
|
--------------------
|
|
|
|
-- IDE Type Stuff --
|
|
|
|
--------------------
|
2022-12-23 02:32:21 +01:00
|
|
|
{
|
|
|
|
"jackMort/ChatGPT.nvim",
|
|
|
|
command = "ChatGPT",
|
|
|
|
config = function()
|
|
|
|
require("chatgpt").setup({
|
|
|
|
-- optional configuration
|
|
|
|
})
|
|
|
|
end,
|
|
|
|
dependencies = {
|
|
|
|
"MunifTanjim/nui.nvim",
|
2022-12-28 15:00:47 +01:00
|
|
|
},
|
2022-12-20 18:38:23 +01:00
|
|
|
},
|
|
|
|
{
|
2022-12-23 02:32:21 +01:00
|
|
|
"olimorris/persisted.nvim",
|
|
|
|
lazy = false,
|
2022-11-16 23:37:05 +01:00
|
|
|
config = function()
|
2022-12-23 02:32:21 +01:00
|
|
|
require("persisted").setup()
|
|
|
|
require("telescope").load_extension("persisted") -- To load the telescope extension
|
2022-11-16 23:37:05 +01:00
|
|
|
end,
|
2022-12-20 18:38:23 +01:00
|
|
|
},
|
2022-10-24 15:24:37 +02:00
|
|
|
-- Dap Debugger -- Have not yet been able to set this up
|
2022-12-20 18:38:23 +01:00
|
|
|
"mfussenegger/nvim-dap",
|
|
|
|
"rcarriga/nvim-dap-ui",
|
|
|
|
{ "mxsdev/nvim-dap-vscode-js", requires = { "mfussenegger/nvim-dap" } },
|
|
|
|
"editorconfig/editorconfig-vim",
|
|
|
|
{
|
2022-10-24 15:24:37 +02:00
|
|
|
"michaelb/sniprun",
|
|
|
|
event = "BufReadPost",
|
|
|
|
config = function()
|
|
|
|
require("configs.sniprun")
|
|
|
|
end,
|
|
|
|
run = "bash ./install.sh",
|
2022-12-20 18:38:23 +01:00
|
|
|
},
|
|
|
|
{
|
2022-10-24 15:24:37 +02:00
|
|
|
"uga-rosa/translate.nvim",
|
|
|
|
event = "InsertEnter",
|
|
|
|
config = function()
|
2022-10-30 20:58:59 +01:00
|
|
|
require("translate").setup({ default = { output = "replace" } })
|
2022-10-06 21:14:32 +02:00
|
|
|
end,
|
2022-12-20 18:38:23 +01:00
|
|
|
},
|
|
|
|
{
|
2022-09-02 16:15:54 +02:00
|
|
|
"nvim-neotest/neotest",
|
2022-10-24 15:24:37 +02:00
|
|
|
cmd = "NeoTest",
|
|
|
|
config = function()
|
|
|
|
require("configs.neotest")
|
|
|
|
end,
|
2022-09-02 16:15:54 +02:00
|
|
|
requires = {
|
2022-09-19 20:32:50 +02:00
|
|
|
"haydenmeade/neotest-jest",
|
|
|
|
"KaiSpencer/neotest-vitest",
|
2022-09-02 16:15:54 +02:00
|
|
|
"antoinemadec/FixCursorHold.nvim",
|
|
|
|
},
|
2022-12-20 18:38:23 +01:00
|
|
|
},
|
2022-12-28 15:00:42 +01:00
|
|
|
{
|
|
|
|
"tpope/vim-dadbod",
|
|
|
|
lazy = false,
|
|
|
|
},
|
|
|
|
{ "kristijanhusak/vim-dadbod-ui", lazy = false },
|
2022-12-20 18:38:23 +01:00
|
|
|
}
|
2022-09-02 16:15:54 +02:00
|
|
|
|
2022-12-23 02:32:21 +01:00
|
|
|
local opts = { defaults = { lazy = true }, install = { colorscheme = { "catppuccin" } } }
|
2022-09-02 16:15:54 +02:00
|
|
|
|
2022-12-20 18:38:23 +01:00
|
|
|
require("lazy").setup(plugins, opts)
|