From 34e147989c1b8d5a930b5a28d38fb85c2c6fb89c Mon Sep 17 00:00:00 2001 From: brustybee Date: Tue, 10 Mar 2026 01:16:33 +0530 Subject: Disable hints for lua ls and add hlchunk --- cats.nix | 5 +++++ lua/config/lsp.lua | 2 +- lua/plugins/misc.lua | 59 ++++++++++++++++++++++++++++++++++++++++++++++++++++ package.nix | 1 + 4 files changed, 66 insertions(+), 1 deletion(-) diff --git a/cats.nix b/cats.nix index 781313e..953f6bf 100644 --- a/cats.nix +++ b/cats.nix @@ -132,6 +132,11 @@ in ]; }; + ui = [ + # mini-indentscope + hlchunk-nvim + ]; + tsitter = [ nvim-treesitter.withAllGrammars nvim-treesitter-textobjects diff --git a/lua/config/lsp.lua b/lua/config/lsp.lua index 2e7cf05..3ac5cca 100644 --- a/lua/config/lsp.lua +++ b/lua/config/lsp.lua @@ -26,7 +26,7 @@ vim.lsp.config("lua_ls", { Lua = { codeLens = { enable = true }, hint = { - enable = true, + enable = false, semicolon = "Disable", }, workspace = { diff --git a/lua/plugins/misc.lua b/lua/plugins/misc.lua index 37185ae..74eff58 100644 --- a/lua/plugins/misc.lua +++ b/lua/plugins/misc.lua @@ -47,4 +47,63 @@ return { }) end, }, + -- { + -- "mini.indentscope", + -- for_cats = "ui", + -- event = { "BufReadPre", "BufNewFile" }, + -- after = function() + -- require("mini.indentscope").setup({ symbol = "│" }) + -- end, + -- }, + { + "hlchunk.nvim", + for_cats = "ui", + event = { "BufReadPre", "BufNewFile" }, + after = function() + local ignored_filetypes = { + gitcommit = true, + oil = true, + Neogitstatus = true, + TelescopePrompt = true, + NvimTree = true, + help = true, + } + + require("hlchunk").setup({ + chunk = { + enable = true, + priority = 15, + style = { + vim.api.nvim_get_hl(0, { name = "IndentBlanklineIndent1" }), + vim.api.nvim_get_hl(0, { name = "DiagnosticError" }), + }, + use_treesitter = true, + chars = { + horizontal_line = "─", + vertical_line = "│", + left_top = "╭", + left_bottom = "╰", + right_arrow = "─", + }, + textobject = "", + exclude_filetypes = ignored_filetypes, + max_file_size = 1024 * 1024, + error_sign = true, + -- animation related + duration = 200, + delay = 300, + }, + indent = { + enable = true, + priority = 10, + style = { vim.api.nvim_get_hl(0, { name = "Whitespace" }) }, + use_treesitter = true, + exclude_filetypes = ignored_filetypes, + chars = { "│" }, + ahead_lines = 5, + delay = 100, + }, + }) + end, + }, } diff --git a/package.nix b/package.nix index 72f0e4e..39e8b06 100644 --- a/package.nix +++ b/package.nix @@ -39,6 +39,7 @@ let typst = false; misc = false; zig = false; + ui = true; debug = false; python = false; markdown = false; -- cgit v1.3.1