From 82411e7b77c6970abee512f5c9a3c7fb9637c694 Mon Sep 17 00:00:00 2001 From: Christian Nieves Date: Tue, 13 Aug 2024 06:12:36 +0000 Subject: [PATCH] hlchunk.nvim --- config/.config/nvim/lazy-lock.json | 2 +- vim/.vim/lua/plugins/base.lua | 44 +++++++++++++------- vim/.vim/lua/plugins/diagnostics.lua | 5 +-- vim/.vim/lua/plugins/google.lua | 2 +- vim/.vim/lua/plugins/notify.lua | 62 ++++++++++++++-------------- vim/.vim/lua/plugins/paint.lua | 10 ++--- 6 files changed, 68 insertions(+), 57 deletions(-) diff --git a/config/.config/nvim/lazy-lock.json b/config/.config/nvim/lazy-lock.json index 39dfe3e..62d578b 100644 --- a/config/.config/nvim/lazy-lock.json +++ b/config/.config/nvim/lazy-lock.json @@ -1,3 +1,3 @@ { - "lazy.nvim": { "branch": "main", "commit": "4496b4cad69a862199bb3ad452d3c4988bb925a1" } + "lazy.nvim": { "branch": "main", "commit": "077102c5bfc578693f12377846d427f49bc50076" } } diff --git a/vim/.vim/lua/plugins/base.lua b/vim/.vim/lua/plugins/base.lua index acc0fa6..4d415d6 100644 --- a/vim/.vim/lua/plugins/base.lua +++ b/vim/.vim/lua/plugins/base.lua @@ -2,23 +2,35 @@ local use_google = require("utils").use_google local buf_too_large = require("utils").buf_too_large return { - -- { - -- "m4xshen/hardtime.nvim", - -- dependencies = { "MunifTanjim/nui.nvim", "nvim-lua/plenary.nvim" }, - -- opts = {}, - -- }, { - "folke/flash.nvim", - event = "VeryLazy", - opts = {}, - -- stylua: ignore - keys = { - { "s", mode = { "n", "x", "o" }, function() require("flash").jump() end, desc = "Flash" }, - { "S", mode = { "n", "x", "o" }, function() require("flash").treesitter() end, desc = "Flash Treesitter" }, - { "r", mode = "o", function() require("flash").remote() end, desc = "Remote Flash" }, - { "R", mode = { "o", "x" }, function() require("flash").treesitter_search() end, desc = "Treesitter Search" }, - { "", mode = { "c" }, function() require("flash").toggle() end, desc = "Toggle Flash Search" }, - }, + "shellRaining/hlchunk.nvim", + event = { "BufReadPre", "BufNewFile" }, + opts = { + line_num = { enable = true }, + chunk = { + enable = true, + priority = 15, + style = { + { fg = "#403d4c" }, + { fg = "#c21f30" }, + }, + chars = { + horizontal_line = "─", + -- vertical_line = "│", + vertical_line = "┊", + left_top = "╭", + left_bottom = "╰", + right_arrow = ">", + }, + use_treesitter = true, + textobject = "", + max_file_size = 1024 * 1024, + error_sign = true, + -- animation related + duration = 0, + delay = 0, + }, + }, }, { "Bekaboo/dropbar.nvim", diff --git a/vim/.vim/lua/plugins/diagnostics.lua b/vim/.vim/lua/plugins/diagnostics.lua index fbb93a2..8b449f2 100644 --- a/vim/.vim/lua/plugins/diagnostics.lua +++ b/vim/.vim/lua/plugins/diagnostics.lua @@ -13,9 +13,8 @@ return { end, keys = { { "xt", ":Telescope diagnostics" }, - { "gr", ":Trouble lsp_references" }, - { "xw", ":Trouble workspace_diagnostics" }, - { "xd", ":Trouble document_diagnostics" }, + { "gr", ":Telescope lsp_references" }, + { "xd", ":Trouble" }, { "[g", "lua vim.diagnostic.goto_prev()" }, { "]g", "lua vim.diagnostic.goto_next()" }, }, diff --git a/vim/.vim/lua/plugins/google.lua b/vim/.vim/lua/plugins/google.lua index d6b78f9..8f6721a 100644 --- a/vim/.vim/lua/plugins/google.lua +++ b/vim/.vim/lua/plugins/google.lua @@ -316,7 +316,7 @@ return { config = function() -- Here are all the options and their default values: require("critique.comments").setup({ - debug = 1, -- default = 0 + -- debug = 1, -- default = 0 -- Fetch the comments after calling `setup`. auto_fetch = true, -- default = true auto_render = true, -- default = true diff --git a/vim/.vim/lua/plugins/notify.lua b/vim/.vim/lua/plugins/notify.lua index f6d231c..0557741 100644 --- a/vim/.vim/lua/plugins/notify.lua +++ b/vim/.vim/lua/plugins/notify.lua @@ -1,21 +1,21 @@ return { - { - "rcarriga/nvim-notify", - event = "VimEnter", - cond = true, - lazy = true, - config = function() - -- local colors = require("catppuccin.palettes").get_palette() - require("notify").setup({ - -- background_colour = colors.base, - fps = 20, -- default 30 - -- stages = "slide", -- default fade_in_slide_out - timeout = 5000, -- default 5000 - render = "wrapped-compact", - }) - vim.notify = require("notify") - end, - }, + -- { + -- "rcarriga/nvim-notify", + -- event = "VimEnter", + -- cond = true, + -- lazy = true, + -- config = function() + -- -- local colors = require("catppuccin.palettes").get_palette() + -- require("notify").setup({ + -- -- background_colour = colors.base, + -- fps = 20, -- default 30 + -- stages = "slide", -- default fade_in_slide_out + -- timeout = 5000, -- default 5000 + -- render = "wrapped-compact", + -- }) + -- vim.notify = require("notify") + -- end, + -- }, { "j-hui/fidget.nvim", event = "VimEnter", @@ -32,18 +32,18 @@ return { }, }, }, - -- { - -- "echasnovski/mini.notify", - -- version = false, - -- dependencies = { - -- "rcarriga/nvim-notify", - -- "j-hui/fidget.nvim", - -- }, - -- config = function() - -- vim.notify = function(msg, level, opts) - -- require("fidget").notify(msg, level, opts) - -- require("mini.notify").make_notify()(msg, level, opts) - -- end - -- end, - -- }, + { + "echasnovski/mini.notify", + version = false, + dependencies = { + "rcarriga/nvim-notify", + "j-hui/fidget.nvim", + }, + config = function() + vim.notify = function(msg, level, opts) + require("fidget").notify(msg, level, opts) + require("mini.notify").make_notify()(msg, level, opts) + end + end, + }, } diff --git a/vim/.vim/lua/plugins/paint.lua b/vim/.vim/lua/plugins/paint.lua index ad2d66b..2b4ab7d 100644 --- a/vim/.vim/lua/plugins/paint.lua +++ b/vim/.vim/lua/plugins/paint.lua @@ -31,10 +31,10 @@ return { -- }, -- -- WASM - { pattern = "(W)ASM", hl = "LightRed", filter = {} }, - { pattern = "W(A)SM", hl = "LightBlue", filter = {} }, - { pattern = "WA(S)M", hl = "LightGreen", filter = {} }, - { pattern = "WAS(M)", hl = "LightYellow", filter = {} }, + -- { pattern = "(W)ASM", hl = "LightRed", filter = {} }, + -- { pattern = "W(A)SM", hl = "LightBlue", filter = {} }, + -- { pattern = "WA(S)M", hl = "LightGreen", filter = {} }, + -- { pattern = "WAS(M)", hl = "LightYellow", filter = {} }, -- Google -- { pattern = "Google", hl = "LightBlue", filter = {} }, @@ -46,7 +46,7 @@ return { -- { pattern = "Googl(e)", hl = "LightRed", filter = {} }, -- cnieves - { pattern = "cnieves", hl = "LightPurple", filter = {} }, + -- { pattern = "cnieves", hl = "LightPurple", filter = {} }, { pattern = "Christian Nieves", hl = "LightPurple", filter = {} }, }, })