diff options
| author | brustybee <bee@4d2.org> | 2026-03-10 01:16:33 +0530 |
|---|---|---|
| committer | brustybee <bee@4d2.org> | 2026-03-10 01:16:33 +0530 |
| commit | 34e147989c1b8d5a930b5a28d38fb85c2c6fb89c (patch) | |
| tree | 81a2c6c50add89c7234b8f860040a9074a1042c3 | |
| parent | 0ab4b001a573cda44d461143f2c17a096e670944 (diff) | |
Disable hints for lua ls and add hlchunk
| -rw-r--r-- | cats.nix | 5 | ||||
| -rw-r--r-- | lua/config/lsp.lua | 2 | ||||
| -rw-r--r-- | lua/plugins/misc.lua | 59 | ||||
| -rw-r--r-- | package.nix | 1 |
4 files changed, 66 insertions, 1 deletions
@@ -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; |
