This repository has been archived on 2025-10-10. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
.nvim/lua/pluginlist.lua

255 lines
5.0 KiB
Lua
Raw Permalink Normal View History

2024-03-11 22:22:31 -03:00
return {
{
2024-04-09 11:36:32 -03:00
"catppuccin/nvim",
name = "catppuccin",
2024-03-11 22:22:31 -03:00
priority = 1000,
config = function()
2024-04-09 11:36:32 -03:00
require("catppuccin").setup({
flavour = "mocha",
2024-03-11 22:22:31 -03:00
transparent_background = true,
2024-04-09 11:36:32 -03:00
})
vim.cmd.colorscheme("catppuccin")
2024-03-11 22:22:31 -03:00
end,
},
{
2024-04-09 11:36:32 -03:00
"nvim-lualine/lualine.nvim",
2024-03-11 22:22:31 -03:00
opts = {
options = {
icons_enabled = false,
2024-04-09 11:36:32 -03:00
theme = "catppuccin",
component_separators = "|",
section_separators = "",
2024-03-11 22:22:31 -03:00
},
},
},
{
2024-04-09 11:36:32 -03:00
"lukas-reineke/indent-blankline.nvim",
main = "ibl",
2024-03-11 22:22:31 -03:00
opts = {},
},
{
2024-04-09 11:36:32 -03:00
"lewis6991/gitsigns.nvim",
2024-03-11 22:22:31 -03:00
opts = {
signs = {
2024-04-09 11:36:32 -03:00
add = { text = "+" },
change = { text = "~" },
delete = { text = "+" },
topdelete = { text = "-" },
changedelete = { text = "~" },
2024-03-11 22:22:31 -03:00
},
2024-03-15 21:33:43 -03:00
on_attach = function(bufnr)
2024-04-09 11:36:32 -03:00
vim.keymap.set(
"n",
"<leader>hp",
require("gitsigns").preview_hunk,
{ buffer = bufnr, desc = "Preview git hunk" }
)
local gs = package.loaded.gitsigns
vim.keymap.set({ "n", "v" }, "]c", function()
2024-03-11 22:22:31 -03:00
if vim.wo.diff then
2024-04-09 11:36:32 -03:00
return "]c"
2024-03-11 22:22:31 -03:00
end
2024-03-15 21:33:43 -03:00
vim.schedule(function()
2024-03-11 22:22:31 -03:00
gs.next_hunk()
2024-04-09 11:36:32 -03:00
end)
return "<Ignore>"
end, { expr = true, buffer = bufnr, desc = "Jump to next hunk" })
vim.keymap.set({ "n", "v" }, "[c", function()
2024-03-11 22:22:31 -03:00
if vim.wo.diff then
2024-04-09 11:36:32 -03:00
return "[c"
2024-03-11 22:22:31 -03:00
end
2024-03-15 21:33:43 -03:00
vim.schedule(function()
2024-03-11 22:22:31 -03:00
gs.next_hunk()
2024-04-09 11:36:32 -03:00
end)
return "<Ignore>"
end, { expr = true, buffer = bufnr, desc = "Jump to previous hunk" })
2024-03-11 22:22:31 -03:00
end,
},
},
2024-03-15 21:33:43 -03:00
{
2024-04-09 11:36:32 -03:00
"nvim-treesitter/nvim-treesitter",
2024-03-15 21:33:43 -03:00
dependencies = {
2024-04-09 11:36:32 -03:00
"nvim-treesitter/nvim-treesitter-textobjects",
"nvim-treesitter/playground",
2024-03-15 21:33:43 -03:00
},
2024-04-09 11:36:32 -03:00
build = ":TSUpdate",
},
{
"windwp/nvim-ts-autotag",
config = function()
require("nvim-ts-autotag").setup()
end,
},
{
"toppair/peek.nvim",
event = { "VeryLazy" },
build = "deno task --quiet build:fast",
config = function()
require("peek").setup({
app = "browser",
})
vim.api.nvim_create_user_command("PeekOpen", require("peek").open, {})
vim.api.nvim_create_user_command("PeekClose", require("peek").close, {})
end,
},
2024-04-09 11:36:32 -03:00
{ "j-hui/fidget.nvim" },
{ "williamboman/mason.nvim" },
{ "williamboman/mason-lspconfig.nvim" },
{ "neovim/nvim-lspconfig" },
{ "folke/which-key.nvim" },
{ "lewis6991/hover.nvim" },
{ "folke/neodev.nvim" },
{ "nvim-tree/nvim-web-devicons" },
{
"hrsh7th/nvim-cmp",
2024-03-11 22:22:31 -03:00
dependencies = {
2024-04-09 11:36:32 -03:00
"L3MON4D3/LuaSnip",
"saadparwaiz1/cmp_luasnip",
"rafamadriz/friendly-snippets",
"hrsh7th/cmp-nvim-lsp",
"onsails/lspkind.nvim",
2024-03-11 22:22:31 -03:00
},
},
2024-04-09 11:36:32 -03:00
{ "tpope/vim-sleuth" },
2024-03-15 21:33:43 -03:00
{
2024-04-09 11:36:32 -03:00
"folke/trouble.nvim",
dependencies = { "nvim-tree/nvim-web-devicons" },
2024-03-15 21:33:43 -03:00
opts = {},
lazy = false,
},
2024-03-15 22:22:26 -03:00
{
2024-04-09 11:36:32 -03:00
"nvim-telescope/telescope.nvim",
branch = "0.1.x",
2024-03-15 22:22:26 -03:00
dependencies = {
2024-04-09 11:36:32 -03:00
"nvim-lua/plenary.nvim",
2024-03-15 22:22:26 -03:00
{
2024-04-13 16:54:21 -03:00
"nvim-telescope/telescope-fzf-native.nvim",
2024-04-09 11:36:32 -03:00
build = "make",
2024-03-15 22:22:26 -03:00
cond = function()
2024-04-09 11:36:32 -03:00
return vim.fn.executable("make") == 1
end,
2024-03-15 22:22:26 -03:00
},
},
},
-- Do no why I can't clone it via lazy.nvim
2024-03-20 15:59:23 -03:00
{
name = "harpoon",
dir = "/home/guz/.config/nvim/plugins/harpoon",
dependencies = {
"nvim-telescope/telescope.nvim",
"nvim-lua/plenary.nvim",
},
2024-03-20 15:59:23 -03:00
},
2024-03-15 22:39:08 -03:00
{
2024-04-09 11:36:32 -03:00
"romgrk/barbar.nvim",
2024-03-15 22:39:08 -03:00
dependencies = {
2024-04-09 11:36:32 -03:00
"lewis6991/gitsigns.nvim",
"nvim-tree/nvim-web-devicons",
2024-03-15 22:39:08 -03:00
},
2024-04-09 11:36:32 -03:00
init = function()
vim.g.barbar_auto_setup = false
end,
2024-03-15 22:39:08 -03:00
opts = {},
lazy = false,
},
2024-03-20 15:59:39 -03:00
{
2024-04-09 11:36:32 -03:00
"nvim-neo-tree/neo-tree.nvim",
2024-03-20 15:59:39 -03:00
dependencies = {
2024-04-09 11:36:32 -03:00
"nvim-lua/plenary.nvim",
"nvim-tree/nvim-web-devicons",
"MunifTanjim/nui.nvim",
"3rd/image.nvim",
2024-03-20 15:59:39 -03:00
},
lazy = false,
opts = {
closes_if_last_window = true,
window = {
2024-04-09 11:36:32 -03:00
position = "left",
2024-03-20 15:59:39 -03:00
width = 30,
mappings = {},
},
filesystem = {
filtered_items = {
visible = true,
hide_dotfiles = false,
hide_gitignored = false,
2024-04-09 11:36:32 -03:00
hide_by_name = {},
2024-03-20 15:59:39 -03:00
never_show = {
2024-04-09 11:36:32 -03:00
".DS_Store",
2024-03-20 15:59:39 -03:00
},
},
2024-04-09 11:36:32 -03:00
hijack_netrw_behavior = "disabled",
2024-03-20 15:59:39 -03:00
follow_current_file = {
enabled = true,
},
window = { mappings = {} },
},
},
keys = {
2024-04-09 11:36:32 -03:00
{ "<leader>Ex", "<cmd>Neotree toggle<cr>", desc = "[Ex] Toggle explorer" },
2024-03-20 15:59:39 -03:00
},
},
2024-03-15 21:33:43 -03:00
{
2024-04-09 11:36:32 -03:00
"stevearc/conform.nvim",
2024-03-15 21:33:43 -03:00
opts = {
formatters_by_ft = {
2024-04-09 11:36:32 -03:00
nix = { "nixpkgs_fmt" },
2024-03-15 21:33:43 -03:00
},
format_on_save = {
timeout_ms = 1000,
lsp_fallback = true,
},
},
},
{
2024-04-09 11:36:32 -03:00
"numToStr/Comment.nvim",
2024-03-15 21:33:43 -03:00
opts = {
extra = {
2024-04-09 11:36:32 -03:00
above = "gc0",
below = "gco",
eol = "gcA",
2024-03-15 21:33:43 -03:00
},
mappings = {
basic = true,
extra = true,
},
},
},
{
2024-04-09 11:36:32 -03:00
"okuuva/auto-save.nvim",
2024-03-15 21:33:43 -03:00
lazy = false,
event = { "InsertLeave", "TextChanged" },
opts = {
condition = function(buf)
if vim.bo[buf].filetype == "harpoon" then
return false
end
return true
end,
},
2024-03-15 21:33:43 -03:00
},
2024-04-09 11:36:32 -03:00
{ "mhartington/formatter.nvim" },
{ "tpope/vim-fugitive" },
{ "tpope/vim-rhubarb" },
2024-05-24 21:16:12 -03:00
{
"tpope/vim-obsession",
lazy = false,
},
2024-03-15 21:33:43 -03:00
{
2024-04-09 11:36:32 -03:00
"kdheepak/lazygit.nvim",
dependencies = { "nvim-lua/plenary.nvim" },
keys = { { "<leader>gg", "<cmd>:LazyGit<cr>", desc = "[gg] Lazygit" } },
2024-03-15 21:33:43 -03:00
},
2024-04-09 11:36:32 -03:00
{ "lambdalisue/suda.vim" },
2024-03-15 21:33:43 -03:00
{
2024-04-09 11:36:32 -03:00
"aserowy/tmux.nvim",
2024-03-15 21:33:43 -03:00
config = true,
},
2024-05-13 14:27:10 -03:00
{
"laytan/cloak.nvim",
},
2024-05-13 14:46:15 -03:00
{
2024-05-24 21:16:12 -03:00
"lervag/vimtex",
2024-05-13 14:46:15 -03:00
},
2024-04-09 11:36:32 -03:00
}