diff --git a/examples/my-plugins.lua b/examples/my-plugins.lua new file mode 100644 index 0000000..9b12531 --- /dev/null +++ b/examples/my-plugins.lua @@ -0,0 +1,370 @@ +-- https://github.com/viniolvs/my-lazyvim/blob/c627b05106116265eef02d291ddcd48a4a975ada/lua/plugins/my-plugins.lua#L354 + +return { + -- Colorscheme + { + "Mofiqul/dracula.nvim", + lazy = false, + config = function() + require("dracula").setup({ + transparent_bg = true, + italic_comment = true, + }) + end, + }, + + -- Colorscheme + { + "catppuccin/nvim", + name = "catppuccin", + lazy = false, + config = function() + require("catppuccin").setup({ + flavour = "mocha", + transparent_background = false, + show_end_of_buffer = false, + dim_inactive = { + enabled = true, + shade = "dark", + percentage = 0.20, + }, + integrations = { + notify = true, + mini = true, + harpoon = true, + leap = true, + noice = true, + cmp = true, + ts_rainbow = true, + }, + }) + end, + }, + + -- mini.files + { + "echasnovski/mini.files", + version = false, + lazy = false, + config = function() + require("mini.files").setup() + end, + }, + + -- Notify + { + "rcarriga/nvim-notify", + opts = { render = "compact", timeout = "750" }, + }, + + -- tmux navigator + { + "christoomey/vim-tmux-navigator", + lazy = false, + }, + + -- Harpoon + { + "ThePrimeagen/harpoon", + lazy = false, + config = function() + require("harpoon").setup({}) + end, + }, + + -- Modicator + { + "mawkler/modicator.nvim", + dependencies = "Mofiqul/dracula.nvim", -- Add your colorscheme plugin here, + lazy = false, + config = function() + local modicator = require("modicator") + local colors = require("catppuccin.palettes").get_palette("macchiato") + modicator.setup({ + highlights = { + defaults = { + bold = true, + }, + modes = { + ["n"] = { + foreground = colors.blue, + }, + ["i"] = { + foreground = colors.green, + }, + ["v"] = { + foreground = colors.mauve, + }, + ["V"] = { + foreground = colors.mauve, + }, + ["�"] = { -- This symbol is the ^V character + foreground = colors.mauve, + }, + ["s"] = { + foreground = colors.orange, + }, + ["S"] = { + foreground = colors.orange, + }, + ["R"] = { + foreground = colors.red, + }, + ["c"] = { + foreground = colors.orange, + }, + }, + }, + }) + end, + }, + + -- lualine + { + "nvim-lualine/lualine.nvim", + opts = { extensions = { "toggleterm" } }, + }, + + -- Notify + { + "rcarriga/nvim-notify", + opts = { background_colour = "#000000", lazy = false }, + }, + + -- nvim-cmp + { + "hrsh7th/nvim-cmp", + opts = function(_, opts) + local cmp = require("cmp") + opts.mapping = cmp.mapping.preset.insert({ + [""] = cmp.mapping.confirm({ select = true }), + }) + opts.window = { + completion = cmp.config.window.bordered({ + border = "rounded", + winhighlight = "Normal:Normal,FloatBorder:Operator,CursorLine:BufferLineInfoSelected,Search:None", + }), + } + opts.sources = cmp.config.sources({ + { name = "nvim_lsp" }, + { name = "luasnip" }, + { name = "path" }, + { + name = "buffer", + option = { + -- cmp from visible buffers + get_bufnrs = function() + local bufs = {} + for _, win in ipairs(vim.api.nvim_list_wins()) do + bufs[vim.api.nvim_win_get_buf(win)] = true + end + return vim.tbl_keys(bufs) + end, + -- cmp for all kind of words + keyword_pattern = [[\k\+]], + -- suggests from buffer after 4 letters typed + keyword_length = 4, + }, + }, + }) + end, + }, + -- Codeium + { + "Exafunction/codeium.vim", + event = "BufEnter", + config = function() + -- Change '' here to any keycode you like. + vim.keymap.set("i", "", function() + return vim.fn["codeium#Accept"]() + end, { expr = true }) + vim.keymap.set("i", "", function() + return vim.fn["codeium#CycleCompletions"](1) + end, { expr = true }) + vim.keymap.set("i", "", function() + return vim.fn["codeium#CycleCompletions"](-1) + end, { expr = true }) + vim.keymap.set("i", "", function() + return vim.fn["codeium#Clear"]() + end, { expr = true }) + end, + }, + + -- Copilot + -- { + -- "github/copilot.vim", + -- lazy = false, + -- }, + + -- Multiple cursors + { + "mg979/vim-visual-multi", + branch = "master", + event = "BufEnter", + }, + + -- Rainbow parentheses + { + "mrjones2014/nvim-ts-rainbow", + event = "BufReadPre", + config = function() + require("nvim-treesitter.configs").setup({ + rainbow = { + enable = true, + extended_mode = true, -- Also highlight non-bracket delimiters like html tags, boolean or table: lang -> boolean + max_file_lines = nil, -- Do not enable for files with more than n lines, int + }, + }) + end, + }, + + -- Java config + { + "mfussenegger/nvim-jdtls", + ft = { "java" }, + }, + + -- formatters + { + "jose-elias-alvarez/null-ls.nvim", + event = "BufReadPre", + dependencies = { "mason.nvim" }, + opts = function() + local nls = require("null-ls") + return { + sources = { + nls.builtins.formatting.black, + nls.builtins.formatting.stylua, + nls.builtins.diagnostics.flake8, + nls.builtins.formatting.prettierd, + }, + } + end, + }, + + -- Zen Mode + { + "folke/zen-mode.nvim", + event = "VimEnter", + config = function() + require("zen-mode").setup({}) + end, + }, + + -- Screen saver + -- { + -- "folke/drop.nvim", + -- event = "VimEnter", + -- lazy = false, + -- config = function() + -- require("drop").setup({ theme = "snow" }) + -- end, + -- }, + + --Markdown preview + { + "iamcco/markdown-preview.nvim", + ft = { "markdown" }, + }, + + -- Markdown mappings + { + "antonk52/markdowny.nvim", + ft = { "markdown" }, + config = function() + require("markdowny").setup({ filetypes = { "markdown" } }) + end, + }, + + -- Colorizer + { + "norcalli/nvim-colorizer.lua", + ft = { + "css", + "html", + "javascript", + "javascriptreact", + "lua", + "markdown", + "scss", + "typescript", + "typescriptreact", + }, + config = function() + require("colorizer").setup({ + "*", + }, { + mode = "background", + }) + end, + }, + + -- plugin to open links + { + "chrishrb/gx.nvim", + event = { "BufEnter" }, + -- you can specify also another config if you want + config = function() + require("gx").setup({ + handlers = { + plugin = true, -- open plugin links in lua (e.g. packer, lazy, ..) + github = true, -- open github issues + }, + }) + end, + }, + + -- navbuddy + { + "SmiteshP/nvim-navbuddy", + ft = { + "c", + "cpp", + "java", + "python", + "typescript", + "typescriptreact", + "javascript", + }, + dependencies = { + "neovim/nvim-lspconfig", + "SmiteshP/nvim-navic", + "MunifTanjim/nui.nvim", + }, + config = function() + local navbuddy = require("nvim-navbuddy") + navbuddy.setup({ + lsp = { + auto_attach = true, + }, + }) + end, + }, + + -- markdown notes for projects + { + "JellyApple102/flote.nvim", + event = "BufReadPre", + config = function() + require("flote").setup() + end, + }, + + -- idk + { + "giusgad/pets.nvim", + lazy = false, + dependencies = { "MunifTanjim/nui.nvim", "edluffy/hologram.nvim" }, + config = function() + require("pets").setup({}) + end, + }, + -- + { + "meatballs/notebook.nvim", + lazy = false, + config = function() + require("notebook").setup({}) + end, + }, +} diff --git a/lazy-lock.json b/lazy-lock.json index 8f81976..be87dbf 100644 --- a/lazy-lock.json +++ b/lazy-lock.json @@ -1,72 +1,77 @@ { - "LazyVim": { "branch": "main", "commit": "68ff818a5bb7549f90b05e412b76fe448f605ffb" }, - "LuaSnip": { "branch": "master", "commit": "2dbef19461198630b3d7c39f414d09fb07d1fdd2" }, + "LazyVim": { "branch": "main", "commit": "fe72424e77cb9c953084bbcaaa0eb7fe8056dc70" }, + "LuaSnip": { "branch": "master", "commit": "f3b3d3446bcbfa62d638b1903ff00a78b2b730a1" }, "bufferline.nvim": { "branch": "main", "commit": "b15c6daf5a64426c69732b31a951f4e438cb6590" }, - "catppuccin": { "branch": "main", "commit": "c2034f7b549152e5cc757820426341ea5000bc7a" }, + "catppuccin": { "branch": "main", "commit": "c0de3b46811fe1ce3912e2245a9dfbea6b41c300" }, "cmp-buffer": { "branch": "main", "commit": "3022dbc9166796b644a841a02de8dd1cc1d311fa" }, "cmp-emoji": { "branch": "main", "commit": "19075c36d5820253d32e2478b6aaf3734aeaafa0" }, "cmp-nvim-lsp": { "branch": "main", "commit": "5af77f54de1b16c34b23cba810150689a3a90312" }, "cmp-path": { "branch": "main", "commit": "91ff86cd9c29299a64f968ebb45846c485725f23" }, "cmp_luasnip": { "branch": "master", "commit": "05a9ab28b53f71d1aece421ef32fee2cb857a843" }, - "conform.nvim": { "branch": "master", "commit": "4588008a7c5b57fbff97fdfb529c059235cdc7ee" }, - "dashboard-nvim": { "branch": "master", "commit": "63df28409d940f9cac0a925df09d3dc369db9841" }, + "conform.nvim": { "branch": "master", "commit": "192a6d2ddace343f1840a8f72efe2315bd392243" }, + "dashboard-nvim": { "branch": "master", "commit": "413442b12d85315fc626c44a0ce4929b213ef604" }, "diffview.nvim": { "branch": "main", "commit": "3dc498c9777fe79156f3d32dddd483b8b3dbd95f" }, "dressing.nvim": { "branch": "master", "commit": "6f212262061a2120e42da0d1e87326e8a41c0478" }, - "dropbar.nvim": { "branch": "master", "commit": "da63ca9b24f18b814ac75881b1e36199a7676047" }, + "dropbar.nvim": { "branch": "master", "commit": "a133a7deed7431496d8e87e8e4cc9c09a9d78945" }, "flash.nvim": { "branch": "main", "commit": "48817af25f51c0590653bbc290866e4890fe1cbe" }, - "friendly-snippets": { "branch": "main", "commit": "b8fae73a479ae0a1c54f5c98fa687ae8a0addc53" }, - "fzf-lua": { "branch": "main", "commit": "91ec17b4fd0d810599f054eef08db967a0457fbf" }, + "friendly-snippets": { "branch": "main", "commit": "dcd4a586439a1c81357d5b9d26319ae218cc9479" }, + "fzf-lua": { "branch": "main", "commit": "d68d1cfde9bf82061dfdfe35b83fb8636e03766d" }, "gitsigns.nvim": { "branch": "main", "commit": "2c2463dbd82eddd7dbab881c3a62cfbfbe3c67ae" }, "gruvbox.nvim": { "branch": "main", "commit": "6e4027ae957cddf7b193adfaec4a8f9e03b4555f" }, "highlight-undo.nvim": { "branch": "main", "commit": "50a6884a8476be04ecce8f1c4ed692c5000ef0a1" }, - "indent-blankline.nvim": { "branch": "master", "commit": "12e92044d313c54c438bd786d11684c88f6f78cd" }, + "indent-blankline.nvim": { "branch": "master", "commit": "821a7acd88587d966f7e464b0b3031dfe7f5680c" }, "lazy.nvim": { "branch": "main", "commit": "28126922c9b54e35a192ac415788f202c3944c9f" }, "lualine.nvim": { "branch": "master", "commit": "7d131a8d3ba5016229e8a1d08bf8782acea98852" }, - "mason-lspconfig.nvim": { "branch": "main", "commit": "2b3d247fce06f53934174f5dfe0362c42d65c00c" }, - "mason.nvim": { "branch": "main", "commit": "c43eeb5614a09dc17c03a7fb49de2e05de203924" }, - "mini.ai": { "branch": "main", "commit": "3ad9d455a91b8bf3c24d4e50518d9a6b9dddb42c" }, - "mini.animate": { "branch": "main", "commit": "6cec625114007527ff8a82316dba858046f9746f" }, - "mini.bufremove": { "branch": "main", "commit": "020243bfed8c8b941f2c20626faf3ea39c0c0e1b" }, - "mini.comment": { "branch": "main", "commit": "b0b359ada4293cdcea7ab4072dfd5b031aac3f8e" }, - "mini.indentscope": { "branch": "main", "commit": "ca129b71edb672d30b8d7ec3138106db1b1f6a8b" }, - "mini.pairs": { "branch": "main", "commit": "552062017ff207e1f35f7028bfb3f27c7421d22d" }, - "mini.surround": { "branch": "main", "commit": "5ceb6a12d3761bc719fbdad5432c89333deb1498" }, - "neo-tree.nvim": { "branch": "v3.x", "commit": "e578fe7a5832421b0d2c5b3c0a7a1e40e0f6a47a" }, - "neoconf.nvim": { "branch": "main", "commit": "a0e63d84433ab03947cb3da82744220e39e05338" }, - "neodev.nvim": { "branch": "main", "commit": "2793ba3127c2c93ee486b9072a3ef129eeb950cc" }, - "neogit": { "branch": "master", "commit": "1c0369a39587054ff473179c1c04e793fb3d6378" }, + "markdown-preview.nvim": { "branch": "master", "commit": "a923f5fc5ba36a3b17e289dc35dc17f66d0548ee" }, + "markdowny.nvim": { "branch": "main", "commit": "083782f05e67cc08c6378affec9f55a913ac55f4" }, + "mason-lspconfig.nvim": { "branch": "main", "commit": "21d33d69a81f6351e5a5f49078b2e4f0075c8e73" }, + "mason.nvim": { "branch": "main", "commit": "3b5068f0fc565f337d67a2d315d935f574848ee7" }, + "mini.ai": { "branch": "main", "commit": "ee9446a17c160aba6a04ff22097389c41872c878" }, + "mini.animate": { "branch": "main", "commit": "82519630b2760ffc516ebc387bef632f9c07b9f5" }, + "mini.bufremove": { "branch": "main", "commit": "931a3bb514147d9e812767275c4beba6b779b1d3" }, + "mini.comment": { "branch": "main", "commit": "a4b7e46deb9ad2feb8902cc5dbf087eced112ee5" }, + "mini.indentscope": { "branch": "main", "commit": "cf07f19e718ebb0bcc5b00999083ce11c37b8d40" }, + "mini.pairs": { "branch": "main", "commit": "04f58f2545ed80ac3b52dd4826e93f33e15b2af6" }, + "mini.surround": { "branch": "main", "commit": "a1b590cc3b676512de507328d6bbab5e43794720" }, + "neo-tree.nvim": { "branch": "v3.x", "commit": "f3941c57ec85d7bdb44fa53fd858fd80f159018f" }, + "neoconf.nvim": { "branch": "main", "commit": "98980b5300e7a5e7f93e8dbf81c98cc3daa55df7" }, + "neodev.nvim": { "branch": "main", "commit": "84e0290f5600e8b89c0dfcafc864f45496a53400" }, + "neogit": { "branch": "master", "commit": "0d0879b0045fb213c328126969a3317c0963d34a" }, "neovim-project": { "branch": "main", "commit": "e7868b38f402be94e859d479002df1418bc1e954" }, - "neovim-session-manager": { "branch": "master", "commit": "07bb62583769abd9d32f88f428ea58248730ac7a" }, + "neovim-session-manager": { "branch": "master", "commit": "d8e1ba3bbcf3fdc6a887bcfbd94c48ae4707b457" }, "noice.nvim": { "branch": "main", "commit": "bf67d70bd7265d075191e7812d8eb42b9791f737" }, - "nui.nvim": { "branch": "main", "commit": "35da9ca1de0fc4dda96c2e214d93d363c145f418" }, - "nvim-cmp": { "branch": "main", "commit": "538e37ba87284942c1d76ed38dd497e54e65b891" }, + "notebook.nvim": { "branch": "main", "commit": "e7145d5e905f74ac927aa45fe109adbdd9e9f340" }, + "nui.nvim": { "branch": "main", "commit": "c3c7fd618dcb5a89e443a2e1033e7d11fdb0596b" }, + "nvim-cmp": { "branch": "main", "commit": "04e0ca376d6abdbfc8b52180f8ea236cbfddf782" }, "nvim-dev-container": { "branch": "main", "commit": "b402695e7e53e6e576aeb5e460655dc4faa1cd8c" }, - "nvim-lint": { "branch": "master", "commit": "76af3422e3c82ea40adf9ade1ccf1dc1eb361789" }, - "nvim-lspconfig": { "branch": "master", "commit": "ac530dfb97e51d82e3b0a7cddbf7a4a7c4c10ff8" }, - "nvim-notify": { "branch": "master", "commit": "80b67b265530632505193553d05127ae7fe09ddd" }, - "nvim-spectre": { "branch": "master", "commit": "d1ce28b6dc287a6f673461218f3326f0266d75f7" }, - "nvim-treesitter": { "branch": "master", "commit": "e7ea07e42c478cb466cf96124693b447add84011" }, - "nvim-treesitter-context": { "branch": "master", "commit": "9c06b115abc57c99cf0aa81dc29490f5001f57a1" }, - "nvim-treesitter-textobjects": { "branch": "master", "commit": "8edd5a6d96936bdff23333d3bc177481388839e5" }, - "nvim-ts-autotag": { "branch": "main", "commit": "a65b202cfd08e0e69e531eab737205ff5bc082a4" }, - "nvim-ts-context-commentstring": { "branch": "main", "commit": "1277b4a1f451b0f18c0790e1a7f12e1e5fdebfee" }, - "nvim-web-devicons": { "branch": "master", "commit": "aaec87dbdaa776bfa0a13c8694bec9bcb7454719" }, + "nvim-jdtls": { "branch": "master", "commit": "382b9f625861f47d95876bcfb4c261f3b96077cb" }, + "nvim-lint": { "branch": "master", "commit": "4dade85ff26e4bad40f895a6cc6762b7036237f4" }, + "nvim-lspconfig": { "branch": "master", "commit": "0ebcaedb2feb946e56658e0c9b6155fb6c8ad62b" }, + "nvim-notify": { "branch": "master", "commit": "5371f4bfc1f6d3adf4fe9d62cd3a9d44356bfd15" }, + "nvim-spectre": { "branch": "master", "commit": "3712ff0cdf4f9f877d9ca708d835a877d9a0abaf" }, + "nvim-treesitter": { "branch": "master", "commit": "d2f58c0b6507a4ad02ca0b647c130fb8396b4587" }, + "nvim-treesitter-context": { "branch": "master", "commit": "b8d1ffe58a88e0356da56b167373e89c4579ce15" }, + "nvim-treesitter-textobjects": { "branch": "master", "commit": "95933e762e28f9d38b572d65e7e4da9d2f4d90cb" }, + "nvim-ts-autotag": { "branch": "main", "commit": "531f48334c422222aebc888fd36e7d109cb354cd" }, + "nvim-ts-context-commentstring": { "branch": "main", "commit": "7ab799a9792f7cf3883cf28c6a00ad431f3d382a" }, + "nvim-ts-rainbow": { "branch": "master", "commit": "8312b513ce930e7669a1721befbe56f2e1853301" }, + "nvim-web-devicons": { "branch": "master", "commit": "0bb67ef952ea3eb7b1bac9c011281471d99a27bc" }, "persistence.nvim": { "branch": "main", "commit": "4982499c1636eac254b72923ab826ee7827b3084" }, "plenary.nvim": { "branch": "master", "commit": "4f71c0c4a196ceb656c824a70792f3df3ce6bb6d" }, "pretty_hover": { "branch": "master", "commit": "392f6f71c6526955fcf510d48930bce7864b6915" }, - "runner.nvim": { "branch": "main", "commit": "237f7b72c10c34f60c55022d2d79a5f8e5a531a5" }, + "runner.nvim": { "branch": "main", "commit": "7427754e3d45955e47e03d166a5a7207dd430912" }, "sniprun": { "branch": "master", "commit": "0079f9c4675a6825f84e108bbff866f67dd8762f" }, "substitute.nvim": { "branch": "main", "commit": "17ffaeb5a1dc2dbef39cf0865d8a4b6000836714" }, "symbols-outline.nvim": { "branch": "master", "commit": "564ee65dfc9024bdde73a6621820866987cbb256" }, - "telekasten.nvim": { "branch": "main", "commit": "8c2b3889eb31009ae510a43384d1957b37654176" }, + "telekasten.nvim": { "branch": "main", "commit": "a684d6ebe7026944b0a5323219d5f5364511e5b2" }, "telescope-fzf-native.nvim": { "branch": "main", "commit": "6c921ca12321edaa773e324ef64ea301a1d0da62" }, - "telescope.nvim": { "branch": "master", "commit": "7b5c5f56a21e82fdcfe5b250278b8dfc4b1cbab4" }, + "telescope.nvim": { "branch": "master", "commit": "7011eaae0ac1afe036e30c95cf80200b8dc3f21a" }, "todo-comments.nvim": { "branch": "main", "commit": "833d8dd8b07eeda37a09e99460f72a02616935cb" }, "toggleterm.nvim": { "branch": "main", "commit": "193786e0371e3286d3bc9aa0079da1cd41beaa62" }, "tokyonight.nvim": { "branch": "main", "commit": "610179f7f12db3d08540b6cc61434db2eaecbcff" }, "trouble.nvim": { "branch": "main", "commit": "f1168feada93c0154ede4d1fe9183bf69bac54ea" }, "typescript.nvim": { "branch": "main", "commit": "4de85ef699d7e6010528dcfbddc2ed4c2c421467" }, - "vim-illuminate": { "branch": "master", "commit": "97c1265ff0b67064b6cfdc15bafc50202a537ae2" }, - "vim-startuptime": { "branch": "master", "commit": "454b3de856b7bd298700de33d79774ca9b9e3875" }, + "vim-illuminate": { "branch": "master", "commit": "305bf07b919ac526deb5193280379e2f8b599926" }, + "vim-startuptime": { "branch": "master", "commit": "308b0088a864c4711a96e45b6734cf9294074f65" }, "which-key.nvim": { "branch": "main", "commit": "4433e5ec9a507e5097571ed55c02ea9658fb268a" } } \ No newline at end of file diff --git a/lua/plugins/java-ls.lua b/lua/plugins/java-ls.lua new file mode 100644 index 0000000..9134a4f --- /dev/null +++ b/lua/plugins/java-ls.lua @@ -0,0 +1,4 @@ +return { + "mfussenegger/nvim-jdtls", + ft = { "java" }, +} diff --git a/lua/plugins/makdowny.lua b/lua/plugins/makdowny.lua new file mode 100644 index 0000000..3f659a9 --- /dev/null +++ b/lua/plugins/makdowny.lua @@ -0,0 +1,7 @@ +return { + "antonk52/markdowny.nvim", + ft = { "markdown" }, + config = function() + require("markdowny").setup({ filetypes = { "markdown" } }) + end, +} diff --git a/lua/plugins/markdown-preview.lua b/lua/plugins/markdown-preview.lua new file mode 100644 index 0000000..3c4ed4a --- /dev/null +++ b/lua/plugins/markdown-preview.lua @@ -0,0 +1,4 @@ +return { + "iamcco/markdown-preview.nvim", + ft = { "markdown" }, +} diff --git a/lua/plugins/notebook.lua b/lua/plugins/notebook.lua index 3eab11e..3754a7b 100644 --- a/lua/plugins/notebook.lua +++ b/lua/plugins/notebook.lua @@ -1,6 +1,7 @@ return { "meatballs/notebook.nvim", + lazy = false, config = function() - require("notebook").setup() + require("notebook").setup({}) end, } diff --git a/lua/plugins/nvim-ts-rainbow.lua b/lua/plugins/nvim-ts-rainbow.lua new file mode 100644 index 0000000..6cb29fa --- /dev/null +++ b/lua/plugins/nvim-ts-rainbow.lua @@ -0,0 +1,13 @@ +return { + "mrjones2014/nvim-ts-rainbow", + event = "BufReadPre", + config = function() + require("nvim-treesitter.configs").setup({ + rainbow = { + enable = true, + extended_mode = true, -- Also highlight non-bracket delimiters like html tags, boolean or table: lang -> boolean + max_file_lines = nil, -- Do not enable for files with more than n lines, int + }, + }) + end, +}