mirror of
https://github.com/NotAShelf/nvf.git
synced 2026-02-24 04:15:18 +00:00
Merge pull request #1383 from snoweuph/feature/gaslighting
This is not a PR
This commit is contained in:
commit
d5824f2d8f
6 changed files with 72 additions and 0 deletions
|
|
@ -176,6 +176,10 @@
|
||||||
|
|
||||||
- Added Debugging support to `languages.php`.
|
- Added Debugging support to `languages.php`.
|
||||||
|
|
||||||
|
- Didn't Add
|
||||||
|
[`syntax-gaslighting`](https://github.com/NotAShelf/syntax-gaslighting.nvim),
|
||||||
|
you're crazy.
|
||||||
|
|
||||||
[vagahbond](https://github.com/vagahbond): [codewindow.nvim]:
|
[vagahbond](https://github.com/vagahbond): [codewindow.nvim]:
|
||||||
https://github.com/gorbit99/codewindow.nvim
|
https://github.com/gorbit99/codewindow.nvim
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -18,5 +18,6 @@ in {
|
||||||
./nvim-web-devicons
|
./nvim-web-devicons
|
||||||
./rainbow-delimiters
|
./rainbow-delimiters
|
||||||
./tiny-devicons-auto-colors
|
./tiny-devicons-auto-colors
|
||||||
|
./syntax-gaslighting
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
20
modules/plugins/visuals/syntax-gaslighting/config.nix
Normal file
20
modules/plugins/visuals/syntax-gaslighting/config.nix
Normal file
|
|
@ -0,0 +1,20 @@
|
||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
inherit (lib.modules) mkIf;
|
||||||
|
inherit (lib.nvim.dag) entryAnywhere;
|
||||||
|
inherit (lib.nvim.lua) toLuaObject;
|
||||||
|
|
||||||
|
cfg = config.vim.fun.syntax-gaslighting;
|
||||||
|
in {
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
vim = {
|
||||||
|
startPlugins = ["syntax-gaslighting"];
|
||||||
|
pluginRC.colorful-menu-nvim = entryAnywhere ''
|
||||||
|
require("syntax-gaslighting").setup(${toLuaObject cfg.setupOpts})
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
6
modules/plugins/visuals/syntax-gaslighting/default.nix
Normal file
6
modules/plugins/visuals/syntax-gaslighting/default.nix
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
./syntax-gaslighting.nix
|
||||||
|
./config.nix
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,28 @@
|
||||||
|
{lib, ...}: let
|
||||||
|
inherit (lib.options) mkOption mkEnableOption;
|
||||||
|
inherit (lib.types) str nullOr listOf bool;
|
||||||
|
inherit (lib.nvim.types) mkPluginSetupOption;
|
||||||
|
in {
|
||||||
|
options.vim.fun = {
|
||||||
|
syntax-gaslighting = {
|
||||||
|
enable = mkEnableOption "Thats no even a real option, you're crazy.";
|
||||||
|
|
||||||
|
setupOpts = mkPluginSetupOption "syntax-gaslighting" {
|
||||||
|
messages = mkOption {
|
||||||
|
type = nullOr (listOf str);
|
||||||
|
default = null;
|
||||||
|
description = "Custom messages for gaslighting.";
|
||||||
|
};
|
||||||
|
|
||||||
|
merge_messages = mkOption {
|
||||||
|
type = bool;
|
||||||
|
default = false;
|
||||||
|
description = ''
|
||||||
|
Merge user messages with the default ones.
|
||||||
|
If disabled, the messages table will override default messages.
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -2528,6 +2528,19 @@
|
||||||
"url": "https://github.com/supermaven-inc/supermaven-nvim/archive/07d20fce48a5629686aefb0a7cd4b25e33947d50.tar.gz",
|
"url": "https://github.com/supermaven-inc/supermaven-nvim/archive/07d20fce48a5629686aefb0a7cd4b25e33947d50.tar.gz",
|
||||||
"hash": "sha256-1z3WKIiikQqoweReUyK5O8MWSRN5y95qcxM6qzlKMME="
|
"hash": "sha256-1z3WKIiikQqoweReUyK5O8MWSRN5y95qcxM6qzlKMME="
|
||||||
},
|
},
|
||||||
|
"syntax-gaslighting": {
|
||||||
|
"type": "Git",
|
||||||
|
"repository": {
|
||||||
|
"type": "GitHub",
|
||||||
|
"owner": "NotAShelf",
|
||||||
|
"repo": "syntax-gaslighting.nvim"
|
||||||
|
},
|
||||||
|
"branch": "main",
|
||||||
|
"submodules": false,
|
||||||
|
"revision": "4cee4c0550e82b31e07424e0c44379920d716d79",
|
||||||
|
"url": "https://github.com/NotAShelf/syntax-gaslighting.nvim/archive/4cee4c0550e82b31e07424e0c44379920d716d79.tar.gz",
|
||||||
|
"hash": "sha256-sRg6UlK4hQubxf3ycGnMLi+tNvX3zvKgnHYVuZgmvOc="
|
||||||
|
},
|
||||||
"tabular": {
|
"tabular": {
|
||||||
"type": "Git",
|
"type": "Git",
|
||||||
"repository": {
|
"repository": {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue