mirror of
https://github.com/NotAShelf/nvf.git
synced 2026-01-11 05:06:31 +00:00
Merge d99e5fa289 into e0f6fe7a2a
This commit is contained in:
commit
1da7103417
7 changed files with 91 additions and 2 deletions
|
|
@ -94,6 +94,7 @@ isMaximal: {
|
|||
|
||||
tailwind.enable = false;
|
||||
svelte.enable = false;
|
||||
tera.enable = false;
|
||||
|
||||
# Nim LSP is broken on Darwin and therefore
|
||||
# should be disabled by default. Users may still enable
|
||||
|
|
|
|||
|
|
@ -23,4 +23,12 @@
|
|||
[ccc.nvim]: https://github.com/uga-rosa/ccc.nvim
|
||||
|
||||
- Added [ccc.nvim] option {option}`vim.utility.ccc.setupOpts` with the existing
|
||||
hard-coded options as default values.
|
||||
hard-coded options as default values
|
||||
|
||||
[Snoweuph](https://github.com/snoweuph):
|
||||
|
||||
- Added [tera](https://keats.github.io/tera/) language support (syntax highlighting only).
|
||||
- Added neovim theme `grubber-darker` <https://github.com/blazkowolf/gruber-darker.nvim>.
|
||||
- Added neovim builtin theme `habamax`.
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -19,6 +19,7 @@ in {
|
|||
./helm.nix
|
||||
./kotlin.nix
|
||||
./html.nix
|
||||
./tera.nix
|
||||
./haskell.nix
|
||||
./java.nix
|
||||
./json.nix
|
||||
|
|
|
|||
28
modules/plugins/languages/tera.nix
Normal file
28
modules/plugins/languages/tera.nix
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
inherit (lib.options) mkEnableOption;
|
||||
inherit (lib.modules) mkIf mkMerge;
|
||||
inherit (lib.nvim.types) mkGrammarOption;
|
||||
|
||||
cfg = config.vim.languages.tera;
|
||||
in {
|
||||
options.vim.languages.tera = {
|
||||
enable = mkEnableOption "Tera templating language support";
|
||||
|
||||
treesitter = {
|
||||
enable = mkEnableOption "Tera treesitter" // {default = config.vim.languages.enableTreesitter;};
|
||||
package = mkGrammarOption pkgs "tera";
|
||||
};
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable (mkMerge [
|
||||
(mkIf cfg.treesitter.enable {
|
||||
vim.treesitter.enable = true;
|
||||
vim.treesitter.grammars = [cfg.treesitter.package];
|
||||
})
|
||||
]);
|
||||
}
|
||||
|
|
@ -8,6 +8,14 @@
|
|||
inherit (lib.trivial) boolToString warnIf;
|
||||
inherit (lib.nvim.lua) toLuaObject;
|
||||
in {
|
||||
habamax = {
|
||||
builtin = true;
|
||||
setup = _:
|
||||
/*
|
||||
lua
|
||||
*/
|
||||
"vim.cmd('colorscheme habamax')";
|
||||
};
|
||||
base16 = {
|
||||
setup = {base16-colors, ...}: ''
|
||||
-- Base16 theme
|
||||
|
|
@ -37,6 +45,33 @@ in {
|
|||
'';
|
||||
styles = ["dark" "darker" "cool" "deep" "warm" "warmer"];
|
||||
};
|
||||
gruber-darker = {
|
||||
setup = _:
|
||||
/*
|
||||
lua
|
||||
*/
|
||||
''
|
||||
require('gruber-darker').setup({
|
||||
-- defaults
|
||||
bold = true,
|
||||
invert = {
|
||||
signs = false,
|
||||
tabline = false,
|
||||
visual = false,
|
||||
},
|
||||
italic = {
|
||||
strings = true,
|
||||
comments = true,
|
||||
operators = false,
|
||||
folds = true,
|
||||
},
|
||||
undercurl = true,
|
||||
underline = true,
|
||||
})
|
||||
vim.cmd('colorscheme gruber-darker')
|
||||
'';
|
||||
styles = ["dark"];
|
||||
};
|
||||
|
||||
tokyonight = {
|
||||
setup = {
|
||||
|
|
|
|||
|
|
@ -65,7 +65,10 @@ in {
|
|||
|
||||
config = mkIf cfg.enable {
|
||||
vim = {
|
||||
startPlugins = [cfg.name];
|
||||
startPlugins =
|
||||
if (supportedThemes.${cfg.name} ? builtin) && supportedThemes.${cfg.name}.builtin
|
||||
then []
|
||||
else [cfg.name];
|
||||
luaConfigRC.theme = entryBefore ["pluginConfigs" "lazyConfigs"] ''
|
||||
${cfg.extraConfig}
|
||||
${supportedThemes.${cfg.name}.setup {inherit (cfg) style transparent base16-colors;}}
|
||||
|
|
|
|||
|
|
@ -643,6 +643,19 @@
|
|||
"url": "https://github.com/ellisonleao/glow.nvim/archive/5d5954b2f22e109d4a6eba8b2618c5b96e4ee7a2.tar.gz",
|
||||
"hash": "11rlis4riy1w4clnkiza8x6fs8xjwsrsgfzlz2k8z041ancmrw0a"
|
||||
},
|
||||
"gruber-darker": {
|
||||
"type": "Git",
|
||||
"repository": {
|
||||
"type": "GitHub",
|
||||
"owner": "blazkowolf",
|
||||
"repo": "gruber-darker.nvim"
|
||||
},
|
||||
"branch": "main",
|
||||
"submodules": false,
|
||||
"revision": "98a2e141981cbd5a194a97eae024bf55af854579",
|
||||
"url": "https://github.com/blazkowolf/gruber-darker.nvim/archive/98a2e141981cbd5a194a97eae024bf55af854579.tar.gz",
|
||||
"hash": "0bxv33isymnbdzf71w79pfxkwi8ylhjiq3ir9ws2as1d73nnl6lv"
|
||||
},
|
||||
"gruvbox": {
|
||||
"type": "Git",
|
||||
"repository": {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue