mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-02-24 04:18:03 +00:00
Compare commits
3 commits
354dcbd573
...
b2f694c78e
Author | SHA1 | Date | |
---|---|---|---|
![]() |
b2f694c78e | ||
![]() |
7ba06fd77c | ||
![]() |
e80dedd098 |
9 changed files with 20 additions and 41 deletions
8
.github/README.md
vendored
8
.github/README.md
vendored
|
@ -124,16 +124,10 @@ 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 rendered [nvf manual] for detailed and up-to-date installation guides,
|
See the [**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.
|
||||||
|
|
|
@ -193,10 +193,6 @@ 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
10
flake.lock
generated
|
@ -172,7 +172,7 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"plugin-base16-nvim": {
|
"plugin-base16": {
|
||||||
"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": 1723473562,
|
"lastModified": 1712310396,
|
||||||
"narHash": "sha256-gCm7m96PkZyrgjmt7Efc+NMZKStAq1zr7JRCYOgGDuE=",
|
"narHash": "sha256-WcH2dWdRDgMkwBQhcgT+Z/ArMdm+VbRhmQftx4t2kNI=",
|
||||||
"owner": "hoob3rt",
|
"owner": "hoob3rt",
|
||||||
"repo": "lualine.nvim",
|
"repo": "lualine.nvim",
|
||||||
"rev": "b431d228b7bbcdaea818bdc3e25b8cdbe861f056",
|
"rev": "0a5a66803c7407767b799067986b4dc3036e1983",
|
||||||
"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-nvim": "plugin-base16-nvim",
|
"plugin-base16": "plugin-base16",
|
||||||
"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",
|
||||||
|
|
|
@ -349,7 +349,7 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
# Themes
|
# Themes
|
||||||
plugin-base16-nvim = {
|
plugin-base16 = {
|
||||||
url = "github:rrethy/base16-nvim";
|
url = "github:rrethy/base16-nvim";
|
||||||
flake = false;
|
flake = false;
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,13 +1,14 @@
|
||||||
{lib}: let
|
{lib}: let
|
||||||
inherit (lib.strings) isString hasPrefix;
|
inherit (lib.strings) isString;
|
||||||
inherit (lib.types) mkOptionType;
|
inherit (lib.types) mkOptionType;
|
||||||
inherit (builtins) stringLength;
|
inherit (builtins) match;
|
||||||
# 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 = x: isString x && hasPrefix "#" x && stringLength x == 7;
|
# Check to determine wether the provided color is base16-valid
|
||||||
|
check = x: isString x && (match "#[0-9a-fA-F]{6}" x) != null;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,36 +17,29 @@
|
||||||
"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"
|
||||||
];
|
];
|
||||||
|
@ -231,7 +224,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", "neo-tree", "TelescopePrompt"}
|
local excluded_buf_ft = {"toggleterm", "NvimTree", "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
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
{
|
{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 {
|
||||||
|
|
|
@ -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-nvim = {
|
base16 = {
|
||||||
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 = true,
|
enabled = false,
|
||||||
custom_bg = "NONE", -- "lualine" will set background to mantle
|
custom_bg = "NONE", -- "lualine" will set background to mantle
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
inherit lib config;
|
inherit lib config;
|
||||||
};
|
};
|
||||||
base16-colors = import ./base16-colors.nix {
|
base16-colors = import ./base16-colors.nix {
|
||||||
inherit lib config;
|
inherit lib;
|
||||||
};
|
};
|
||||||
in {
|
in {
|
||||||
options.vim.theme = {
|
options.vim.theme = {
|
||||||
|
@ -47,12 +47,10 @@ in {
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
vim = {
|
vim = {
|
||||||
startPlugins = [cfg.name];
|
startPlugins = [cfg.name];
|
||||||
luaConfigRC = {
|
luaConfigRC.theme = entryBefore ["pluginConfigs"] ''
|
||||||
theme = entryBefore ["pluginConfigs"] ''
|
${cfg.extraConfig}
|
||||||
${cfg.extraConfig}
|
${supportedThemes.${cfg.name}.setup {inherit (cfg) style transparent base16-colors;}}
|
||||||
${supportedThemes.${cfg.name}.setup {inherit (cfg) style transparent base16-colors;}}
|
'';
|
||||||
'';
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue