Put every variables in top of the file for easy copy to another config
This commit is contained in:
@@ -1,9 +1,15 @@
|
||||
{ config, ... }: {
|
||||
{ config, ... }:
|
||||
let
|
||||
accent = "#${config.lib.stylix.colors.base0D}";
|
||||
muted = "#${config.lib.stylix.colors.base03}";
|
||||
foreground = "#${config.lib.stylix.colors.base05}";
|
||||
configDir = config.var.configDirectory;
|
||||
in {
|
||||
|
||||
programs.nixvim.highlight = {
|
||||
AlphaHeaderColor.fg = "#${config.lib.stylix.colors.base0D}";
|
||||
AlphaTextColor.fg = "#${config.lib.stylix.colors.base05}";
|
||||
AlphaShortcutColor.fg = "#${config.lib.stylix.colors.base03}";
|
||||
AlphaHeaderColor.fg = accent;
|
||||
AlphaTextColor.fg = foreground;
|
||||
AlphaShortcutColor.fg = muted;
|
||||
};
|
||||
|
||||
programs.nixvim.plugins.alpha = {
|
||||
@@ -70,8 +76,7 @@
|
||||
{
|
||||
type = "button";
|
||||
val = " NixOs Config";
|
||||
on_press.__raw =
|
||||
"function() vim.cmd[[Neotree ${config.var.configDirectory}]] end";
|
||||
on_press.__raw = "function() vim.cmd[[Neotree ${configDir}]] end";
|
||||
opts = {
|
||||
shortcut = "nc";
|
||||
position = "center";
|
||||
@@ -86,7 +91,7 @@
|
||||
type = "button";
|
||||
val = " Keybindings";
|
||||
on_press.__raw =
|
||||
"function() vim.cmd[[e ${config.var.configDirectory}/docs/KEYBINDINGS.md]] end";
|
||||
"function() vim.cmd[[e ${configDir}/docs/KEYBINDINGS.md]] end";
|
||||
opts = {
|
||||
shortcut = "nc";
|
||||
position = "center";
|
||||
|
||||
@@ -1,5 +1,11 @@
|
||||
# The render-markdown.nvim plugin is a plugin that renders markdown files in a neovim in a more readable way.
|
||||
{ pkgs, config, inputs, ... }: {
|
||||
{ pkgs, config, inputs, ... }:
|
||||
let
|
||||
accent = "#${config.lib.stylix.colors.base0D}";
|
||||
muted = "#${config.lib.stylix.colors.base03}";
|
||||
background = "#${config.lib.stylix.colors.base00}";
|
||||
in {
|
||||
|
||||
programs.nixvim = {
|
||||
extraFiles = {
|
||||
"ftplugin/markdown.lua".text = ''
|
||||
@@ -8,13 +14,13 @@
|
||||
'';
|
||||
};
|
||||
highlight = {
|
||||
RenderMarkdownBg.bg = "#${config.lib.stylix.colors.base00}";
|
||||
RenderMarkdownH1.fg = "#${config.lib.stylix.colors.base0D}";
|
||||
RenderMarkdownH2.fg = "#${config.lib.stylix.colors.base0D}";
|
||||
RenderMarkdownH3.fg = "#${config.lib.stylix.colors.base05}";
|
||||
RenderMarkdownH4.fg = "#${config.lib.stylix.colors.base05}";
|
||||
RenderMarkdownH5.fg = "#${config.lib.stylix.colors.base03}";
|
||||
RenderMarkdownH6.fg = "#${config.lib.stylix.colors.base03}";
|
||||
RenderMarkdownBg.bg = background;
|
||||
RenderMarkdownH1.fg = accent;
|
||||
RenderMarkdownH2.fg = muted;
|
||||
RenderMarkdownH3.fg = muted;
|
||||
RenderMarkdownH4.fg = muted;
|
||||
RenderMarkdownH5.fg = muted;
|
||||
RenderMarkdownH6.fg = muted;
|
||||
};
|
||||
extraPlugins = [
|
||||
(pkgs.vimUtils.buildVimPlugin {
|
||||
|
||||
@@ -1,20 +1,25 @@
|
||||
{ config, ... }: {
|
||||
{ config, ... }:
|
||||
let
|
||||
accent = "#${config.lib.stylix.colors.base0D}";
|
||||
background = "#${config.lib.stylix.colors.base00}";
|
||||
background-alt = "#${config.lib.stylix.colors.base01}";
|
||||
in {
|
||||
programs.nixvim = {
|
||||
highlight = {
|
||||
TelescopePromptPrefix.fg = "#${config.lib.stylix.colors.base0D}";
|
||||
TelescopePromptPrefix.fg = accent;
|
||||
TelescopeSelectionCaret = {
|
||||
fg = "#${config.lib.stylix.colors.base0D}";
|
||||
bg = "#${config.lib.stylix.colors.base01}";
|
||||
fg = accent;
|
||||
bg = background-alt;
|
||||
};
|
||||
TelescopeSelection.bg = "#${config.lib.stylix.colors.base01}";
|
||||
TelescopeSelection.bg = background-alt;
|
||||
TelescopePromptTitle = {
|
||||
bg = "#${config.lib.stylix.colors.base00}";
|
||||
fg = "#${config.lib.stylix.colors.base0D}";
|
||||
bg = background;
|
||||
fg = accent;
|
||||
};
|
||||
TelescopePromptNormal.bg = "#${config.lib.stylix.colors.base00}";
|
||||
TelescopePromptNormal.bg = background;
|
||||
TelescopePromptBorder = {
|
||||
bg = "#${config.lib.stylix.colors.base00}";
|
||||
fg = "#${config.lib.stylix.colors.base0D}";
|
||||
bg = background;
|
||||
fg = accent;
|
||||
};
|
||||
};
|
||||
plugins.telescope = {
|
||||
|
||||
Reference in New Issue
Block a user