From ba55463ae40266032b4551d13450867923a4f72f Mon Sep 17 00:00:00 2001 From: Anthony Rodriguez Date: Tue, 3 Sep 2024 19:03:40 +0200 Subject: [PATCH] update indent guides and context plugin to show less lines --- home/base/programs/nixvim/plugins/lsp.nix | 47 ++++++++++++++++++++++- 1 file changed, 45 insertions(+), 2 deletions(-) diff --git a/home/base/programs/nixvim/plugins/lsp.nix b/home/base/programs/nixvim/plugins/lsp.nix index 181b7e0..e1d3d2f 100644 --- a/home/base/programs/nixvim/plugins/lsp.nix +++ b/home/base/programs/nixvim/plugins/lsp.nix @@ -14,13 +14,56 @@ indent = { enable = true; }; + folding = true; parser_install_dir = { __raw = "vim.fs.joinpath(vim.fn.stdpath('data'), 'treesitter')"; }; }; }; - treesitter-context.enable = true; - indent-blankline.enable = true; + treesitter-context = { + enable = true; + settings = { + line_numbers = true; + max_lines = 0; + min_window_height = 0; + mode = "cursor"; + multiline_threshold = 5; + separator = "-"; + trim_scope = "inner"; + zindex = 20; + }; + }; + + indent-blankline = { + enable = true; + settings = + { + exclude = { + buftypes = [ + "terminal" + "quickfix" + ]; + filetypes = [ + "" + "checkhealth" + "help" + "lspinfo" + "packer" + "TelescopePrompt" + "TelescopeResults" + "yaml" + ]; + }; + indent = { + char = "│"; + }; + scope = { + show_end = false; + show_exact_scope = true; + show_start = false; + }; + }; + }; lsp = { enable = true; servers = {