From 65a526308e379b2cd4c07c3febe90e64a02b6646 Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Sun, 17 Nov 2024 11:21:54 +0800 Subject: [PATCH] nixvimConfigs/fiesta: improve treesitter and UI setup --- .../fiesta/modules/setups/treesitter.nix | 13 +----------- configs/nixvim/fiesta/modules/setups/ui.nix | 21 ++++++++++++++++++- 2 files changed, 21 insertions(+), 13 deletions(-) diff --git a/configs/nixvim/fiesta/modules/setups/treesitter.nix b/configs/nixvim/fiesta/modules/setups/treesitter.nix index 4d1379c5..126027ba 100644 --- a/configs/nixvim/fiesta/modules/setups/treesitter.nix +++ b/configs/nixvim/fiesta/modules/setups/treesitter.nix @@ -49,21 +49,10 @@ in }; }; - # Enable some more context for me. - plugins.treesitter-context = { - enable = true; - settings = { - line_numbers = true; - max_lines = 7; - mode = "cursor"; - separator = "*"; - }; - }; - # Some niceties for refactoring. plugins.treesitter-refactor = { enable = true; - highlightCurrentScope.enable = true; + highlightCurrentScope.enable = false; highlightDefinitions.enable = true; navigation.enable = true; smartRename.enable = true; diff --git a/configs/nixvim/fiesta/modules/setups/ui.nix b/configs/nixvim/fiesta/modules/setups/ui.nix index ccd76647..676eb243 100644 --- a/configs/nixvim/fiesta/modules/setups/ui.nix +++ b/configs/nixvim/fiesta/modules/setups/ui.nix @@ -1,4 +1,4 @@ -{ config, lib, ... }: +{ config, lib, helpers,... }: let nixvimCfg = config.nixvimConfigs.fiesta; @@ -42,6 +42,25 @@ in # Taste the rainbow delimiters. plugins.rainbow-delimiters.enable = nixvimCfg.setups.treesitter.enable; + # Taste the indent guides (with rainbow delimiters). + plugins.indent-blankline = { + enable = true; + settings = { + indent = { + char = "┊"; + }; + scope.char = "┃"; + }; + }; + + # mini.plugins + plugins.mini = { + enable = lib.mkDefault true; + + mockDevIcons = true; + modules.icons = { }; + }; + # Enable them status bars. plugins.lualine = { enable = true;