2024-01-29 14:37:59 +00:00
|
|
|
{ config, lib, ... }:
|
|
|
|
|
|
|
|
let
|
|
|
|
nixvimCfg = config.nixvimConfigs.fiesta;
|
|
|
|
cfg = nixvimCfg.setups.ui;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
options.nixvimConfigs.fiesta.setups.ui.enable =
|
|
|
|
lib.mkEnableOption "configuration for UI-related settings and plugins";
|
|
|
|
|
|
|
|
config = lib.mkIf cfg.enable {
|
2024-02-03 13:27:40 +00:00
|
|
|
# Set the colorscheme. Take note, we'll set in the default since this NixVim configuration
|
|
|
|
colorschemes = lib.mkDefault { kanagawa.enable = true; };
|
2024-01-29 14:37:59 +00:00
|
|
|
|
|
|
|
# Make it so that terminal GUI colors are au natural.
|
|
|
|
options.termguicolors = true;
|
|
|
|
|
|
|
|
# Show locations you're supposed to be copying from the internet (or your
|
|
|
|
# own code).
|
|
|
|
options.number = true;
|
|
|
|
|
|
|
|
# Make it easy to count.
|
|
|
|
options.relativenumber = true;
|
|
|
|
|
|
|
|
# Make it easy to identify your cursor.
|
|
|
|
options.cursorline = true;
|
|
|
|
|
|
|
|
# Conceal all of the hidden weapons (or distractions).
|
|
|
|
options.conceallevel = 1;
|
|
|
|
|
|
|
|
# Show them hidden suckers.
|
|
|
|
options.list = true;
|
|
|
|
options.listchars = {
|
2024-02-03 13:27:40 +00:00
|
|
|
tab = "↦ *";
|
2024-01-29 14:37:59 +00:00
|
|
|
trail = "·";
|
2024-02-03 13:27:40 +00:00
|
|
|
nbsp = "%";
|
2024-01-29 14:37:59 +00:00
|
|
|
};
|
|
|
|
|
2024-02-14 10:57:34 +00:00
|
|
|
# My elderly forgot-how-to-do-this assistant.
|
|
|
|
plugins.which-key.enable = true;
|
|
|
|
|
2024-01-29 14:37:59 +00:00
|
|
|
# Taste the rainbow delimiters.
|
2024-02-03 13:27:40 +00:00
|
|
|
plugins.rainbow-delimiters.enable = nixvimCfg.setups.treesitter.enable;
|
|
|
|
|
|
|
|
# Enable them status bars.
|
|
|
|
plugins.lualine = {
|
|
|
|
enable = true;
|
|
|
|
iconsEnabled = true;
|
|
|
|
globalstatus = true;
|
|
|
|
alwaysDivideMiddle = true;
|
|
|
|
|
|
|
|
# Disable the section separators.
|
|
|
|
sectionSeparators = {
|
|
|
|
left = "";
|
|
|
|
right = "";
|
|
|
|
};
|
|
|
|
|
|
|
|
sections = {
|
|
|
|
lualine_a = [ "mode" ];
|
2024-02-06 23:59:15 +00:00
|
|
|
lualine_c = [
|
|
|
|
{
|
|
|
|
name = "filename";
|
|
|
|
extraConfig = {
|
|
|
|
newfile_status = true;
|
|
|
|
shorting_target = 10;
|
|
|
|
path = 1;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
];
|
2024-02-03 13:27:40 +00:00
|
|
|
lualine_z = [ "location" ];
|
|
|
|
};
|
|
|
|
};
|
2024-01-29 14:37:59 +00:00
|
|
|
};
|
|
|
|
}
|