337 lines
8.3 KiB
Lua
337 lines
8.3 KiB
Lua
local lazy = require("lazy")
|
|
|
|
lazy.setup({
|
|
|
|
"lewis6991/impatient.nvim",
|
|
|
|
-------------------------------------------THEMES------------------------------------------
|
|
{
|
|
"catppuccin/nvim",
|
|
name = "catppuccin",
|
|
lazy = false,
|
|
priority = 1000,
|
|
opts = {},
|
|
},
|
|
|
|
"sainnhe/gruvbox-material",
|
|
|
|
-------------------------------------------------------MFP---------------------------------
|
|
{
|
|
"susliko/tla.nvim",
|
|
opts = {},
|
|
},
|
|
-------------------------------------------------------QOL---------------------------------
|
|
|
|
{
|
|
"jbyuki/instant.nvim",
|
|
config = function()
|
|
vim.g.instant_username = "afonso"
|
|
end,
|
|
},
|
|
|
|
"vimpostor/vim-tpipeline",
|
|
|
|
{
|
|
"TobinPalmer/pastify.nvim",
|
|
cmd = { "Pastify" },
|
|
opts = {},
|
|
},
|
|
|
|
--Python notebooks
|
|
{
|
|
"luk400/vim-jukit",
|
|
config = function()
|
|
require("plugins.jukit")
|
|
end,
|
|
ft = { "python", "json" },
|
|
},
|
|
|
|
--Nvim to browser
|
|
"subnut/nvim-ghost.nvim",
|
|
|
|
{
|
|
"declancm/cinnamon.nvim",
|
|
opts = {
|
|
scroll_limit = 10000,
|
|
always_scroll = true,
|
|
},
|
|
},
|
|
|
|
{
|
|
"folke/todo-comments.nvim",
|
|
event = "VeryLazy",
|
|
dependencies = { "nvim-lua/plenary.nvim" },
|
|
opts = {},
|
|
},
|
|
|
|
{
|
|
"folke/zen-mode.nvim",
|
|
event = "VeryLazy",
|
|
opts = {
|
|
vim.keymap.set("n", "<leader>z", "<Cmd> ZenMode <CR>", { noremap = true, silent = true }),
|
|
},
|
|
},
|
|
|
|
--Change add and remove surroundings from words
|
|
"tpope/vim-surround",
|
|
|
|
{
|
|
"NvChad/nvim-colorizer.lua",
|
|
opts = {},
|
|
},
|
|
|
|
"mbbill/undotree",
|
|
|
|
--Tmux navigation
|
|
{
|
|
"alexghergh/nvim-tmux-navigation",
|
|
opts = {
|
|
disable_when_zoomed = true, -- defaults to false
|
|
keybindings = {
|
|
left = "<F5>",
|
|
down = "<F6>",
|
|
up = "<F7>",
|
|
right = "<F8>",
|
|
},
|
|
},
|
|
},
|
|
|
|
-- Rename variable pop up
|
|
"stevearc/dressing.nvim",
|
|
|
|
{
|
|
"windwp/nvim-autopairs",
|
|
config = function()
|
|
require("plugins.autopairs")
|
|
end,
|
|
},
|
|
|
|
"nvim-tree/nvim-web-devicons",
|
|
|
|
{
|
|
"nvim-lualine/lualine.nvim",
|
|
dependencies = { "nvim-tree/nvim-web-devicons", opt = true },
|
|
config = function()
|
|
require("plugins.lualine")
|
|
end,
|
|
},
|
|
|
|
{
|
|
"stevearc/oil.nvim",
|
|
opts = {},
|
|
},
|
|
|
|
-------------------------------------------------------LSP----------------------------------------------
|
|
{
|
|
"hrsh7th/nvim-cmp",
|
|
dependencies = {
|
|
"hrsh7th/cmp-nvim-lsp", -- lsp
|
|
"hrsh7th/cmp-nvim-lua", -- Nvim API completions
|
|
"hrsh7th/cmp-nvim-lsp-signature-help", -- Show function signatures
|
|
"hrsh7th/cmp-buffer", --buffer completions
|
|
"hrsh7th/cmp-path", --path completions
|
|
"hrsh7th/cmp-cmdline", --cmdline completions
|
|
"L3MON4D3/LuaSnip",
|
|
"rafamadriz/friendly-snippets",
|
|
"saadparwaiz1/cmp_luasnip",
|
|
"onsails/lspkind.nvim", --lspkind icons
|
|
},
|
|
config = function()
|
|
require("plugins.cmp")
|
|
end,
|
|
},
|
|
|
|
--LSP Status
|
|
"j-hui/fidget.nvim",
|
|
|
|
{
|
|
"rcarriga/nvim-dap-ui",
|
|
event = "VeryLazy",
|
|
dependencies = { "mfussenegger/nvim-dap", "nvim-neotest/nvim-nio" },
|
|
config = function()
|
|
local dap = require("dap")
|
|
local dapui = require("dapui")
|
|
dapui.setup()
|
|
dap.listeners.after.event_initialized["dapui_config"] = function()
|
|
dapui.open()
|
|
end
|
|
dap.listeners.before.event_terminated["dapui_config"] = function()
|
|
dapui.close()
|
|
end
|
|
dap.listeners.before.event_exited["dapui_config"] = function()
|
|
dapui.close()
|
|
end
|
|
end,
|
|
},
|
|
{
|
|
"jay-babu/mason-nvim-dap.nvim",
|
|
event = "VeryLazy",
|
|
dependencies = {
|
|
"williamboman/mason.nvim",
|
|
"mfussenegger/nvim-dap",
|
|
},
|
|
opts = {
|
|
handlers = {},
|
|
},
|
|
},
|
|
{
|
|
"mfussenegger/nvim-dap",
|
|
config = function()
|
|
require("plugins.dap")
|
|
end,
|
|
},
|
|
|
|
{
|
|
"williamboman/mason.nvim",
|
|
config = function()
|
|
require("plugins.mason")
|
|
end,
|
|
},
|
|
|
|
"williamboman/mason-lspconfig.nvim",
|
|
|
|
{
|
|
"neovim/nvim-lspconfig",
|
|
config = function()
|
|
require("plugins.lspconfig")
|
|
end,
|
|
},
|
|
{
|
|
"folke/trouble.nvim",
|
|
branch = "dev",
|
|
keys = {
|
|
{
|
|
"<leader>xx",
|
|
"<cmd>Trouble diagnostics toggle<cr>",
|
|
desc = "Diagnostics (Trouble)",
|
|
},
|
|
{
|
|
"<leader>xX",
|
|
"<cmd>Trouble diagnostics toggle filter.buf=0<cr>",
|
|
desc = "Buffer Diagnostics (Trouble)",
|
|
},
|
|
{
|
|
"<leader>cs",
|
|
"<cmd>Trouble symbols toggle focus=false<cr>",
|
|
desc = "Symbols (Trouble)",
|
|
},
|
|
{
|
|
"<leader>cl",
|
|
"<cmd>Trouble lsp toggle focus=false win.position=right<cr>",
|
|
desc = "LSP Definitions / references / ... (Trouble)",
|
|
},
|
|
{
|
|
"<leader>xL",
|
|
"<cmd>Trouble loclist toggle<cr>",
|
|
desc = "Location List (Trouble)",
|
|
},
|
|
{
|
|
"<leader>xQ",
|
|
"<cmd>Trouble qflist toggle<cr>",
|
|
desc = "Quickfix List (Trouble)",
|
|
},
|
|
},
|
|
opts = {
|
|
modes = {
|
|
mydiags = {
|
|
mode = "diagnostics", -- inherit from diagnostics mode
|
|
filter = {
|
|
any = {
|
|
buf = 0, -- current buffer
|
|
{
|
|
severity = vim.diagnostic.severity.ERROR, -- errors only
|
|
-- limit to files in the current project
|
|
function(item)
|
|
return item.filename:find(vim.loop.cwd(), 1, true)
|
|
end,
|
|
},
|
|
},
|
|
},
|
|
}
|
|
}
|
|
}
|
|
},
|
|
|
|
{
|
|
"stevearc/conform.nvim",
|
|
config = function()
|
|
require("plugins.conform")
|
|
end,
|
|
},
|
|
|
|
{
|
|
'dense-analysis/ale',
|
|
config = function()
|
|
vim.g.ale_linters_explicit = 1
|
|
vim.g.ale_echo_msg_error_str = 'E'
|
|
vim.g.ale_echo_msg_warning_str = 'W'
|
|
vim.g.ale_echo_msg_format = '[%linter%] %s [%severity%]'
|
|
--vim.g.ale_linters = {
|
|
-- go = { 'golangci-lint' },
|
|
--}
|
|
end
|
|
},
|
|
|
|
{
|
|
"lervag/vimtex",
|
|
config = function()
|
|
require("plugins.vimtex")
|
|
end,
|
|
},
|
|
|
|
--'tpope/vim-commentary',
|
|
|
|
-- {
|
|
-- "mrcjkb/rustaceanvim",
|
|
-- version = "^4", -- Recommended
|
|
-- ft = { "rust" },
|
|
-- },
|
|
|
|
"barreiroleo/ltex-extra.nvim",
|
|
|
|
-------------------------------------------------------------------------------------------
|
|
-- Syntax Highlighting
|
|
{
|
|
"nvim-treesitter/nvim-treesitter",
|
|
config = function()
|
|
require("plugins.treesitter")
|
|
end,
|
|
},
|
|
|
|
"kaarmu/typst.vim",
|
|
|
|
--Sticky headers
|
|
{
|
|
"nvim-treesitter/nvim-treesitter-context",
|
|
config = function()
|
|
require("plugins.treesitter-context")
|
|
end,
|
|
},
|
|
|
|
"runoshun/vim-alloy",
|
|
|
|
--does so much
|
|
{
|
|
"nvim-telescope/telescope.nvim",
|
|
tag = "0.1.4",
|
|
-- or , branch = '0.1.x',
|
|
dependencies = { "nvim-lua/plenary.nvim" },
|
|
config = function()
|
|
require("plugins.telescope")
|
|
end,
|
|
},
|
|
|
|
--Discord Rich Presence
|
|
"andweeb/presence.nvim",
|
|
|
|
--Vim be good
|
|
'ThePrimeagen/vim-be-good',
|
|
|
|
--JQ
|
|
'jrop/jq.nvim',
|
|
|
|
{
|
|
'BooleanCube/keylab.nvim',
|
|
opts = {}
|
|
}
|
|
})
|