forked from foxora/nix
hlchunk has better perf :3
This commit is contained in:
parent
592e6f021d
commit
ab94f48294
5 changed files with 42 additions and 44 deletions
|
|
@ -206,11 +206,9 @@ local function load_colors()
|
||||||
-- lualine.nvim
|
-- lualine.nvim
|
||||||
vim.api.nvim_exec_autocmds("User", { pattern = "RefreshLualine" })
|
vim.api.nvim_exec_autocmds("User", { pattern = "RefreshLualine" })
|
||||||
|
|
||||||
-- indent-blankline.nvim
|
-- hlchunk.nvim
|
||||||
vim.api.nvim_set_hl(0, "IblIndent", { fg = secondary_30 })
|
vim.api.nvim_set_hl(0, "HLIndent1", { fg = secondary_30 })
|
||||||
vim.api.nvim_set_hl(0, "IblScope", { fg = color_11 })
|
vim.api.nvim_set_hl(0, "HLChunk1", { fg = color_11 })
|
||||||
vim.api.nvim_exec_autocmds("User", { pattern = "RefreshIndentBlankline" })
|
|
||||||
vim.api.nvim_set_hl(0, "@ibl.scope.underline.1", { underline = false })
|
|
||||||
else
|
else
|
||||||
print("Error: Not enough colors in file")
|
print("Error: Not enough colors in file")
|
||||||
end
|
end
|
||||||
|
|
@ -238,9 +236,3 @@ local function watch_colorscheme()
|
||||||
end
|
end
|
||||||
|
|
||||||
watch_colorscheme()
|
watch_colorscheme()
|
||||||
|
|
||||||
vim.api.nvim_create_autocmd("VimLeave", {
|
|
||||||
callback = function()
|
|
||||||
io.write("\027]112\007")
|
|
||||||
end,
|
|
||||||
})
|
|
||||||
|
|
|
||||||
36
homes/modules/programs/neovim/lua/plugins/hlchunk.lua
Normal file
36
homes/modules/programs/neovim/lua/plugins/hlchunk.lua
Normal file
|
|
@ -0,0 +1,36 @@
|
||||||
|
return {
|
||||||
|
{
|
||||||
|
"hlchunk.nvim",
|
||||||
|
enabled = nixCats("ui.hlchunk") or false,
|
||||||
|
after = function(plugin)
|
||||||
|
require("hlchunk").setup({
|
||||||
|
chunk = {
|
||||||
|
enable = true,
|
||||||
|
use_treesitter = true,
|
||||||
|
chars = {
|
||||||
|
horizontal_line = "─",
|
||||||
|
vertical_line = "│",
|
||||||
|
left_top = "╭",
|
||||||
|
left_bottom = "╰",
|
||||||
|
right_arrow = "─",
|
||||||
|
},
|
||||||
|
style = {
|
||||||
|
"#B0F0FA",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
indent = {
|
||||||
|
enable = true,
|
||||||
|
use_treesitter = false,
|
||||||
|
ahead_lines = 10,
|
||||||
|
delay = 25,
|
||||||
|
chars = {
|
||||||
|
"│",
|
||||||
|
},
|
||||||
|
style = {
|
||||||
|
"#9080FA",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
})
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
@ -1,30 +0,0 @@
|
||||||
local config = {
|
|
||||||
debounce = 25,
|
|
||||||
indent = {
|
|
||||||
char = "│",
|
|
||||||
smart_indent_cap = true,
|
|
||||||
},
|
|
||||||
scope = {
|
|
||||||
show_start = true,
|
|
||||||
show_end = true,
|
|
||||||
show_exact_scope = false,
|
|
||||||
injected_languages = true,
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
||||||
return {
|
|
||||||
{
|
|
||||||
"indent-blankline.nvim",
|
|
||||||
enabled = nixCats("ui.indent-blankline") or false,
|
|
||||||
after = function(plugin)
|
|
||||||
require("ibl").setup(config)
|
|
||||||
|
|
||||||
vim.api.nvim_create_autocmd("User", {
|
|
||||||
pattern = "RefreshIndentBlankline",
|
|
||||||
callback = function()
|
|
||||||
require("ibl").setup(config)
|
|
||||||
end,
|
|
||||||
})
|
|
||||||
end,
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
@ -8,5 +8,5 @@ require("lze").load({
|
||||||
{ import = "plugins.comment" },
|
{ import = "plugins.comment" },
|
||||||
{ import = "plugins.git" },
|
{ import = "plugins.git" },
|
||||||
{ import = "plugins.lualine" },
|
{ import = "plugins.lualine" },
|
||||||
{ import = "plugins.indent-blankline" },
|
{ import = "plugins.hlchunk" },
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -126,7 +126,7 @@ in {
|
||||||
ui = {
|
ui = {
|
||||||
dressing = [dressing-nvim];
|
dressing = [dressing-nvim];
|
||||||
lualine = [lualine-nvim];
|
lualine = [lualine-nvim];
|
||||||
indent-blankline = [indent-blankline-nvim];
|
hlchunk = [hlchunk-nvim];
|
||||||
};
|
};
|
||||||
qol = [
|
qol = [
|
||||||
undotree
|
undotree
|
||||||
|
|
@ -241,7 +241,7 @@ in {
|
||||||
ui = {
|
ui = {
|
||||||
dressing = true;
|
dressing = true;
|
||||||
lualine = true;
|
lualine = true;
|
||||||
indent-blankline = true;
|
hlchunk = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
qol = true;
|
qol = true;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue