nixvimConfigs/fiesta: improve treesitter and UI setup

This commit is contained in:
Gabriel Arazas 2024-11-17 11:21:54 +08:00
parent 23914fe2eb
commit 65a526308e
No known key found for this signature in database
GPG Key ID: 62104B43D00AA360
2 changed files with 21 additions and 13 deletions

View File

@ -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. # Some niceties for refactoring.
plugins.treesitter-refactor = { plugins.treesitter-refactor = {
enable = true; enable = true;
highlightCurrentScope.enable = true; highlightCurrentScope.enable = false;
highlightDefinitions.enable = true; highlightDefinitions.enable = true;
navigation.enable = true; navigation.enable = true;
smartRename.enable = true; smartRename.enable = true;

View File

@ -1,4 +1,4 @@
{ config, lib, ... }: { config, lib, helpers,... }:
let let
nixvimCfg = config.nixvimConfigs.fiesta; nixvimCfg = config.nixvimConfigs.fiesta;
@ -42,6 +42,25 @@ in
# Taste the rainbow delimiters. # Taste the rainbow delimiters.
plugins.rainbow-delimiters.enable = nixvimCfg.setups.treesitter.enable; 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. # Enable them status bars.
plugins.lualine = { plugins.lualine = {
enable = true; enable = true;