hlchunk.nvim

This commit is contained in:
Christian Nieves
2024-08-13 06:12:36 +00:00
parent 81cc999670
commit 82411e7b77
6 changed files with 68 additions and 57 deletions

View File

@ -1,3 +1,3 @@
{
"lazy.nvim": { "branch": "main", "commit": "4496b4cad69a862199bb3ad452d3c4988bb925a1" }
"lazy.nvim": { "branch": "main", "commit": "077102c5bfc578693f12377846d427f49bc50076" }
}

View File

@ -2,22 +2,34 @@ 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" },
{ "<c-s>", 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,
},
},
},
{

View File

@ -13,9 +13,8 @@ return {
end,
keys = {
{ "<leader>xt", "<cmd>:Telescope diagnostics<CR>" },
{ "gr", ":Trouble lsp_references<CR>" },
{ "<leader>xw", ":Trouble workspace_diagnostics<CR>" },
{ "<leader>xd", ":Trouble document_diagnostics<CR>" },
{ "gr", ":Telescope lsp_references<CR>" },
{ "<leader>xd", ":Trouble<CR>" },
{ "[g", "<cmd>lua vim.diagnostic.goto_prev()<CR>" },
{ "]g", "<cmd>lua vim.diagnostic.goto_next()<CR>" },
},

View File

@ -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

View File

@ -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
-- {
-- "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,
},
-- 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,
},
}

View File

@ -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 = {} },
},
})