Compare commits

..

9 commits

Author SHA1 Message Date
Charlie Root
354dcbd573
Merge branch 'main' into main 2024-10-03 12:41:32 +00:00
diniamo
108cfd8383
themes/catppuccin: enable navic integration (#395)
Some checks failed
Set up binary cache / cachix (default) (push) Has been cancelled
Set up binary cache / cachix (maximal) (push) Has been cancelled
Set up binary cache / cachix (nix) (push) Has been cancelled
Validate flake & check formatting / Validate Flake (push) Has been cancelled
Validate flake & check formatting / Formatting via Alejandra (push) Has been cancelled
Build and deploy documentation / Check latest commit (push) Has been cancelled
Build and deploy documentation / publish (push) Has been cancelled
2024-10-02 19:21:45 +03:00
raf
9ea9995b92
statusline/lualine: update & add missing themes (#393)
Some checks failed
Set up binary cache / cachix (default) (push) Has been cancelled
Set up binary cache / cachix (maximal) (push) Has been cancelled
Set up binary cache / cachix (nix) (push) Has been cancelled
Validate flake & check documentation / Validate Flake Documentation (docs) (push) Has been cancelled
Validate flake & check documentation / Validate Flake Documentation (docs-html) (push) Has been cancelled
Validate flake & check documentation / Validate Flake Documentation (docs-json) (push) Has been cancelled
Validate flake & check documentation / Validate Flake Documentation (docs-manpages) (push) Has been cancelled
Validate flake & check formatting / Validate Flake (push) Has been cancelled
Validate flake & check formatting / Formatting via Alejandra (push) Has been cancelled
Build and deploy documentation / Check latest commit (push) Has been cancelled
Build and deploy documentation / publish (push) Has been cancelled
* statusline/lualine: update & add missing themes

* docs: document lualine update
2024-10-01 08:18:29 +03:00
7417c6e4f3
docs: fix missing documentation link in README 2024-10-01 08:12:06 +03:00
Charlie Root
c6bdea316b
Merge branch 'NotAShelf:main' into main 2024-09-30 18:17:11 +00:00
3cba3ca30c
statusline/lualine: disable LSP indicator on neo-tree
Some checks failed
Set up binary cache / cachix (default) (push) Has been cancelled
Set up binary cache / cachix (maximal) (push) Has been cancelled
Set up binary cache / cachix (nix) (push) Has been cancelled
Validate flake & check formatting / Validate Flake (push) Has been cancelled
Validate flake & check formatting / Formatting via Alejandra (push) Has been cancelled
Build and deploy documentation / Check latest commit (push) Has been cancelled
Build and deploy documentation / publish (push) Has been cancelled
2024-09-30 01:10:33 +03:00
Charlie Root
77bd81b3c9
supported-themes.nix: formatting 2024-09-29 23:26:53 +02:00
Charlie Root
42e122ac6c
theme/theme.nix: fix formatting 2024-09-29 23:23:20 +02:00
Charlie Root
9c9dd1d670
modules: add base16 Theming support 2024-09-29 23:22:26 +02:00
9 changed files with 41 additions and 20 deletions

8
.github/README.md vendored
View file

@ -124,10 +124,16 @@ The _recommended_ way of installing **nvf** is using either the NixOS or the
Home-Manager module, though it is completely possible and no less supported to Home-Manager module, though it is completely possible and no less supported to
install **nvf** as a standalone package, or a flake output. install **nvf** as a standalone package, or a flake output.
See the [**nvf** manual] for detailed and up-to-date installation guides, See the rendered [nvf manual] for detailed and up-to-date installation guides,
configurations, available options, release notes and more. Tips for installing configurations, available options, release notes and more. Tips for installing
userspace plugins is also contained in the documentation. userspace plugins is also contained in the documentation.
> [!TIP]
> While using NixOS or Home-Manager modules,
> `programs.nvf.enableManpages = true;` will allow you to view option
> documentation from the comfort of your terminal via `man 5 nvf`. The more you
> know.
Please create an issue on the [issue tracker] if you find the documentation Please create an issue on the [issue tracker] if you find the documentation
lacking or confusing. Any improvements to the documentation through pull lacking or confusing. Any improvements to the documentation through pull
requests are also welcome, and appreciated. requests are also welcome, and appreciated.

View file

@ -193,6 +193,10 @@ everyone.
- Add [](#opt-vim.dashboard.dashboard-nvim.setupOpts) to allow user - Add [](#opt-vim.dashboard.dashboard-nvim.setupOpts) to allow user
configuration for [dashboard.nvim](https://github.com/nvimdev/dashboard-nvim) configuration for [dashboard.nvim](https://github.com/nvimdev/dashboard-nvim)
- Update `lualine.nvim` input and add missing themes:
- Adds `ayu`, `gruvbox_dark`, `iceberg`, `moonfly`, `onedark`,
`powerline_dark` and `solarized_light` themes.
[ppenguin](https://github.com/ppenguin): [ppenguin](https://github.com/ppenguin):
- Telescope: - Telescope:

10
flake.lock generated
View file

@ -172,7 +172,7 @@
"type": "github" "type": "github"
} }
}, },
"plugin-base16": { "plugin-base16-nvim": {
"flake": false, "flake": false,
"locked": { "locked": {
"lastModified": 1716483968, "lastModified": 1716483968,
@ -815,11 +815,11 @@
"plugin-lualine": { "plugin-lualine": {
"flake": false, "flake": false,
"locked": { "locked": {
"lastModified": 1712310396, "lastModified": 1723473562,
"narHash": "sha256-WcH2dWdRDgMkwBQhcgT+Z/ArMdm+VbRhmQftx4t2kNI=", "narHash": "sha256-gCm7m96PkZyrgjmt7Efc+NMZKStAq1zr7JRCYOgGDuE=",
"owner": "hoob3rt", "owner": "hoob3rt",
"repo": "lualine.nvim", "repo": "lualine.nvim",
"rev": "0a5a66803c7407767b799067986b4dc3036e1983", "rev": "b431d228b7bbcdaea818bdc3e25b8cdbe861f056",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -1818,7 +1818,7 @@
"nixpkgs": "nixpkgs", "nixpkgs": "nixpkgs",
"nmd": "nmd", "nmd": "nmd",
"plugin-alpha-nvim": "plugin-alpha-nvim", "plugin-alpha-nvim": "plugin-alpha-nvim",
"plugin-base16": "plugin-base16", "plugin-base16-nvim": "plugin-base16-nvim",
"plugin-bufdelete-nvim": "plugin-bufdelete-nvim", "plugin-bufdelete-nvim": "plugin-bufdelete-nvim",
"plugin-catppuccin": "plugin-catppuccin", "plugin-catppuccin": "plugin-catppuccin",
"plugin-ccc": "plugin-ccc", "plugin-ccc": "plugin-ccc",

View file

@ -349,7 +349,7 @@
}; };
# Themes # Themes
plugin-base16 = { plugin-base16-nvim = {
url = "github:rrethy/base16-nvim"; url = "github:rrethy/base16-nvim";
flake = false; flake = false;
}; };

View file

@ -1,14 +1,13 @@
{lib}: let {lib}: let
inherit (lib.strings) isString; inherit (lib.strings) isString hasPrefix;
inherit (lib.types) mkOptionType; inherit (lib.types) mkOptionType;
inherit (builtins) match; inherit (builtins) stringLength;
# This was almost entirely taken from raf himself. # This was almost entirely taken from raf himself.
in { in {
hexColorType = mkOptionType { hexColorType = mkOptionType {
name = "hex-color"; name = "hex-color";
descriptionClass = "noun"; descriptionClass = "noun";
description = "RGB color in hex format"; description = "RGB color in hex format";
# Check to determine wether the provided color is base16-valid check = x: isString x && hasPrefix "#" x && stringLength x == 7;
check = x: isString x && (match "#[0-9a-fA-F]{6}" x) != null;
}; };
} }

View file

@ -17,29 +17,36 @@
"ayu_dark" "ayu_dark"
"ayu_light" "ayu_light"
"ayu_mirage" "ayu_mirage"
"ayu"
"codedark" "codedark"
"dracula" "dracula"
"everforest" "everforest"
"gruvbox" "gruvbox"
"gruvbox_dark"
"gruvbox_light" "gruvbox_light"
"gruvbox_material" "gruvbox_material"
"horizon" "horizon"
"iceberg_dark" "iceberg_dark"
"iceberg_light" "iceberg_light"
"iceberg"
"jellybeans" "jellybeans"
"material" "material"
"modus_vivendi" "modus_vivendi"
"molokai" "molokai"
"moonfly"
"nightfly" "nightfly"
"nord" "nord"
"oceanicnext" "oceanicnext"
"onedark"
"onelight" "onelight"
"palenight" "palenight"
"papercolor_dark" "papercolor_dark"
"papercolor_light" "papercolor_light"
"powerline_dark"
"powerline" "powerline"
"seoul256" "seoul256"
"solarized_dark" "solarized_dark"
"solarized_light"
"tomorrow" "tomorrow"
"wombat" "wombat"
]; ];
@ -224,7 +231,7 @@ in {
local buf_ft = vim.api.nvim_get_option_value('filetype', {}) local buf_ft = vim.api.nvim_get_option_value('filetype', {})
-- List of buffer types to exclude -- List of buffer types to exclude
local excluded_buf_ft = {"toggleterm", "NvimTree", "TelescopePrompt"} local excluded_buf_ft = {"toggleterm", "NvimTree", "neo-tree", "TelescopePrompt"}
-- Check if the current buffer type is in the excluded list -- Check if the current buffer type is in the excluded list
for _, excluded_type in ipairs(excluded_buf_ft) do for _, excluded_type in ipairs(excluded_buf_ft) do

View file

@ -1,4 +1,7 @@
{lib}: let {
config,
lib,
}: let
inherit (lib.options) mkOption; inherit (lib.options) mkOption;
inherit (lib.nvim.types) hexColorType; inherit (lib.nvim.types) hexColorType;
in { in {

View file

@ -7,7 +7,7 @@
inherit (lib.nvim.lua) toLuaObject; inherit (lib.nvim.lua) toLuaObject;
cfg = config.vim.theme; cfg = config.vim.theme;
in { in {
base16 = { base16-nvim = {
setup = {base16-colors, ...}: '' setup = {base16-colors, ...}: ''
-- Base-16 theme -- Base-16 theme
require('base16-colorscheme').setup(${toLuaObject cfg.base16-colors}) require('base16-colorscheme').setup(${toLuaObject cfg.base16-colors})
@ -79,7 +79,7 @@ in {
notify = true, -- nvim-notify notify = true, -- nvim-notify
which_key = true, which_key = true,
navic = { navic = {
enabled = false, enabled = true,
custom_bg = "NONE", -- "lualine" will set background to mantle custom_bg = "NONE", -- "lualine" will set background to mantle
}, },
}, },

View file

@ -14,7 +14,7 @@
inherit lib config; inherit lib config;
}; };
base16-colors = import ./base16-colors.nix { base16-colors = import ./base16-colors.nix {
inherit lib; inherit lib config;
}; };
in { in {
options.vim.theme = { options.vim.theme = {
@ -47,10 +47,12 @@ in {
config = mkIf cfg.enable { config = mkIf cfg.enable {
vim = { vim = {
startPlugins = [cfg.name]; startPlugins = [cfg.name];
luaConfigRC.theme = entryBefore ["pluginConfigs"] '' luaConfigRC = {
${cfg.extraConfig} theme = entryBefore ["pluginConfigs"] ''
${supportedThemes.${cfg.name}.setup {inherit (cfg) style transparent base16-colors;}} ${cfg.extraConfig}
''; ${supportedThemes.${cfg.name}.setup {inherit (cfg) style transparent base16-colors;}}
'';
};
}; };
}; };
} }