diff --git a/lazy-lock.json b/lazy-lock.json index 26930ed..b6b05ab 100644 --- a/lazy-lock.json +++ b/lazy-lock.json @@ -6,22 +6,25 @@ "conform.nvim": { "branch": "master", "commit": "b4aab989db276993ea5dcb78872be494ce546521" }, "diffview.nvim": { "branch": "main", "commit": "4516612fe98ff56ae0415a259ff6361a89419b0a" }, "friendly-snippets": { "branch": "main", "commit": "572f5660cf05f8cd8834e096d7b4c921ba18e175" }, - "gitsigns.nvim": { "branch": "main", "commit": "6e3c66548035e50db7bd8e360a29aec6620c3641" }, + "gitsigns.nvim": { "branch": "main", "commit": "f780609807eca1f783a36a8a31c30a48fbe150c5" }, "indent-blankline.nvim": { "branch": "master", "commit": "005b56001b2cb30bfa61b7986bc50657816ba4ba" }, "lazy.nvim": { "branch": "main", "commit": "6c3bda4aca61a13a9c63f1c1d1b16b9d3be90d7a" }, "lualine.nvim": { "branch": "master", "commit": "b8c23159c0161f4b89196f74ee3a6d02cdc3a955" }, "mini.icons": { "branch": "main", "commit": "f9a177c11daa7829389b7b6eaaec8b8a5c47052d" }, + "monkey-alert": { "branch": "main", "commit": "213a39f8161f80ce43e1a164a54fe796432422b8" }, "neo-tree.nvim": { "branch": "main", "commit": "ed057048a281b418d5318dd5153f9486daa517a3" }, - "no-neck-pain.nvim": { "branch": "main", "commit": "76ccd195fb2195ae1b9b9f0d539c517fa3f8a2b9" }, + "no-neck-pain.nvim": { "branch": "main", "commit": "0463fbb77bcab4cc9716ba1e87255bbe4d002de7" }, "noice.nvim": { "branch": "main", "commit": "0427460c2d7f673ad60eb02b35f5e9926cf67c59" }, "nui.nvim": { "branch": "main", "commit": "de740991c12411b663994b2860f1a4fd0937c130" }, "nvim-treesitter": { "branch": "master", "commit": "42fc28ba918343ebfd5565147a42a26580579482" }, "nvim-ts-autotag": { "branch": "main", "commit": "c4ca798ab95b316a768d51eaaaee48f64a4a46bc" }, "nvim-web-devicons": { "branch": "master", "commit": "6e51ca170563330e063720449c21f43e27ca0bc1" }, "nvim-window-picker": { "branch": "main", "commit": "6382540b2ae5de6c793d4aa2e3fe6dbb518505ec" }, + "peek.nvim": { "branch": "master", "commit": "5820d937d5414baea5f586dc2a3d912a74636e5b" }, "plenary.nvim": { "branch": "master", "commit": "b9fd5226c2f76c951fc8ed5923d85e4de065e509" }, + "rose-pine": { "branch": "main", "commit": "72a04c4065345b51b56aed4859ea1d884f734097" }, "smear-cursor.nvim": { "branch": "main", "commit": "4b86df8a0c5f46e708616b21a02493bb0e47ecbd" }, - "snacks.nvim": { "branch": "main", "commit": "bc0630e43be5699bb94dadc302c0d21615421d93" }, + "snacks.nvim": { "branch": "main", "commit": "da230e3ca8146da4b73752daaf0a1d07d343c12d" }, "telescope-fzf-native.nvim": { "branch": "main", "commit": "1f08ed60cafc8f6168b72b80be2b2ea149813e55" }, "telescope-git-file-history.nvim": { "branch": "master", "commit": "e7d495319f2a04df96402057a6992ea970f8914d" }, "telescope.nvim": { "branch": "master", "commit": "b4da76be54691e854d3e0e02c36b0245f945c2c7" }, diff --git a/lua/plugins/code-utils.lua b/lua/plugins/code-utils.lua index e282dd9..188848c 100644 --- a/lua/plugins/code-utils.lua +++ b/lua/plugins/code-utils.lua @@ -2,68 +2,68 @@ -- │ Code utils │ -- ╰────────────╯ return { - -- │ Code parse │ - { - "nvim-treesitter/nvim-treesitter", - opts = function() - return require("plugins.opts.treesitter") - end, - config = function(_, opts) - require("nvim-treesitter.configs").setup(opts) - end, - }, + -- │ Code parse │ + { + "nvim-treesitter/nvim-treesitter", + opts = function() + return require("plugins.opts.treesitter") + end, + config = function(_, opts) + require("nvim-treesitter.configs").setup(opts) + end, + }, - -- │ Completion │ - { - 'saghen/blink.cmp', - dependencies = { 'rafamadriz/friendly-snippets' }, - version = '1.*', - opts = { - -- C-e: Hide menu - -- C-k: Toggle signature help (if signature.enabled = true) - keymap = { - preset = 'default', - [''] = { 'accept', 'fallback' }, - [''] = { 'select_next', 'fallback' }, - [''] = { 'select_prev', 'fallback' }, - }, - appearance = { - nerd_font_variant = 'mono' - }, - completion = { documentation = { auto_show = false } }, - sources = { - }, - default = { 'lsp', 'path', 'snippets', 'buffer' }, - fuzzy = { implementation = "prefer_rust_with_warning" } - }, - opts_extend = { "sources.default" } - }, + -- │ Completion │ + { + "saghen/blink.cmp", + dependencies = { "rafamadriz/friendly-snippets" }, + version = "1.*", + -- build = "cargo build --release", + opts = { + -- C-e: Hide menu + -- C-k: Toggle signature help (if signature.enabled = true) + keymap = { + preset = "default", + [""] = { "accept", "fallback" }, + [""] = { "select_next", "fallback" }, + [""] = { "select_prev", "fallback" }, + }, + appearance = { + nerd_font_variant = "mono", + }, + completion = { documentation = { auto_show = false } }, + sources = {}, + -- default = { "lsp", "path", "snippets", "buffer" }, + fuzzy = { implementation = "prefer_rust_with_warning" }, + }, + opts_extend = { "sources.default" }, + }, - -- -- │ Auto close │ - { - "windwp/nvim-ts-autotag", - config = function(_, opts) - require('nvim-ts-autotag').setup({ - opts = { - enable_close = true, - enable_rename = true, - enable_close_on_slash = false - }, - }) - end, - }, + -- -- │ Auto close │ + { + "windwp/nvim-ts-autotag", + config = function(_, opts) + require("nvim-ts-autotag").setup({ + opts = { + enable_close = true, + enable_rename = true, + enable_close_on_slash = false, + }, + }) + end, + }, - -- │ Diagnostics │ - { - "folke/trouble.nvim", - opts = { use_diagnostic_signs = true }, - }, + -- │ Diagnostics │ + { + "folke/trouble.nvim", + opts = { use_diagnostic_signs = true }, + }, - { - "folke/todo-comments.nvim", - dependencies = { "nvim-lua/plenary.nvim" }, - opts = function() - return require("plugins.opts.todocomments") - end, - } + { + "folke/todo-comments.nvim", + dependencies = { "nvim-lua/plenary.nvim" }, + opts = function() + return require("plugins.opts.todocomments") + end, + }, } diff --git a/lua/plugins/git.lua b/lua/plugins/git.lua index 21d9592..414025d 100644 --- a/lua/plugins/git.lua +++ b/lua/plugins/git.lua @@ -2,29 +2,30 @@ -- │ Git │ -- ╰─────╯ return { - { - "lewis6991/gitsigns.nvim", - opts = function() - return require("plugins.opts.gitsigns") - end, - }, + { + "lewis6991/gitsigns.nvim", + opts = function() + return require("plugins.opts.gitsigns") + end, + }, - { - "sindrets/diffview.nvim", - lazy = false, - }, + { + "sindrets/diffview.nvim", + lazy = false, + }, - { "tpope/vim-fugitive" }, + { "tpope/vim-fugitive" }, - { - dir = "~/Documents/Code/monkey-alert.nvim", - name = "monkey-alert", - opts = { - monkey_mail_list = "john@doe.org,another@dude.me,dani.heras@hotmail.com", - blame_text_color_hex = "#c0ffee", - blame_text = "- Monkey alert 🐒", - blame_position = "eol", - auto_attach = true - }, - }, + { + -- dir = "~/Documents/Code/monkey-alert.nvim", + "dqnid/monkey-alert.nvim", + name = "monkey-alert", + opts = { + monkey_mail_list = "john@doe.org,another@dude.me,dani.heras@hotmail.com", + blame_text_color_hex = "#c0ffee", + blame_text = "- Monkey alert 🐒", + blame_position = "eol", + auto_attach = false, + }, + }, } diff --git a/lua/plugins/preview.lua b/lua/plugins/preview.lua new file mode 100644 index 0000000..6e3c82f --- /dev/null +++ b/lua/plugins/preview.lua @@ -0,0 +1,12 @@ +return { + { + "toppair/peek.nvim", + event = { "VeryLazy" }, + build = "deno task --quiet build:fast", + config = function() + require("peek").setup() + vim.api.nvim_create_user_command("PeekOpen", require("peek").open, {}) + vim.api.nvim_create_user_command("PeekClose", require("peek").close, {}) + end, + }, +} diff --git a/lua/plugins/style.lua b/lua/plugins/style.lua index ed882ad..2f548e5 100644 --- a/lua/plugins/style.lua +++ b/lua/plugins/style.lua @@ -2,53 +2,53 @@ -- │ Styling │ -- ╰─────────╯ return { - { - dir = "~/Documents/Code/plain-colors.nvim", - -- 'rose-pine/neovim', - name = "rose-pine", - opts = { - variant = "darker", -- dark, light, darker | dawn - }, - }, + { + -- dir = "~/Documents/Code/plain-colors.nvim", + "rose-pine/neovim", + name = "rose-pine", + opts = { + variant = "dawn", -- dark, light, darker | dawn + }, + }, - { "echasnovski/mini.icons" }, + { "echasnovski/mini.icons" }, - { - "folke/noice.nvim", - event = "VeryLazy", - opts = function() - return require("plugins.opts.noice") - end, - dependencies = { - "MunifTanjim/nui.nvim", - -- OPTIONAL: - -- `nvim-notify` is only needed, if you want to use the notification view. - -- If not available, we use `mini` as the fallback - -- "rcarriga/nvim-notify", - } - }, + { + "folke/noice.nvim", + event = "VeryLazy", + opts = function() + return require("plugins.opts.noice") + end, + dependencies = { + "MunifTanjim/nui.nvim", + -- OPTIONAL: + -- `nvim-notify` is only needed, if you want to use the notification view. + -- If not available, we use `mini` as the fallback + -- "rcarriga/nvim-notify", + }, + }, - { - "shortcuts/no-neck-pain.nvim", - version = "*", - }, + { + "shortcuts/no-neck-pain.nvim", + version = "*", + }, - { - "sphamba/smear-cursor.nvim", - opts = { - smear_between_buffers = false, - smear_between_neighbor_lines = true, - scroll_buffer_space = true, - -- Set to `true` if your font supports legacy computing symbols (block unicode symbols). - legacy_computing_symbols_support = false, - smear_insert_mode = true, + { + "sphamba/smear-cursor.nvim", + opts = { + smear_between_buffers = false, + smear_between_neighbor_lines = true, + scroll_buffer_space = true, + -- Set to `true` if your font supports legacy computing symbols (block unicode symbols). + legacy_computing_symbols_support = false, + smear_insert_mode = true, - -- fast smear - stiffness = 0.8, -- 0.6 [0, 1] - trailing_stiffness = 0.5, -- 0.4 [0, 1] - stiffness_insert_mode = 0.6, -- 0.4 [0, 1] - trailing_stiffness_insert_mode = 0.6, -- 0.4 [0, 1] - distance_stop_animating = 0.5, -- 0.1 > 0 - }, - }, + -- fast smear + stiffness = 0.8, -- 0.6 [0, 1] + trailing_stiffness = 0.5, -- 0.4 [0, 1] + stiffness_insert_mode = 0.6, -- 0.4 [0, 1] + trailing_stiffness_insert_mode = 0.6, -- 0.4 [0, 1] + distance_stop_animating = 0.5, -- 0.1 > 0 + }, + }, }