mirror of
https://github.com/NotAShelf/nvf.git
synced 2026-01-17 07:43:21 +00:00
Compare commits
17 commits
e21904d50d
...
9f6413e891
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9f6413e891 |
||
|
|
79f3dc2c02 | ||
|
af0cc1a856 |
|||
|
707bd3b18c |
|||
|
|
8f73019907 | ||
|
d91df07c7b |
|||
|
d407a9ac0f |
|||
|
2bee8b8a9d |
|||
|
43421d5612 |
|||
|
|
990d3598b1 | ||
|
|
8b305e8ed1 |
||
|
3202c4deba |
|||
|
8441eab1b2 |
|||
|
8ab559ccfe |
|||
|
|
3e3d7171c1 | ||
|
|
95e2eec30b | ||
|
|
9220c27e85 |
13 changed files with 109 additions and 6 deletions
|
|
@ -337,9 +337,13 @@
|
|||
|
||||
[Noah765](https://github.com/Noah765):
|
||||
|
||||
[vim-sleuth]: https://github.com/tpope/vim-sleuth
|
||||
|
||||
- Add missing `flutter-tools.nvim` dependency `plenary.nvim`.
|
||||
- Add necessary dependency of `flutter-tools.nvim` on lsp.
|
||||
- Add the `vim.languages.dart.flutter-tools.flutterPackage` option.
|
||||
- Fix the type of the `highlight` color options.
|
||||
- Add [vim-sleuth] plugin under `vim.utility.sleuth`.
|
||||
|
||||
[howird](https://github.com/howird):
|
||||
|
||||
|
|
@ -349,4 +353,5 @@
|
|||
|
||||
[avante-nvim]: https://github.com/yetone/avante.nvim
|
||||
|
||||
- Fix [render-markdown.nvim] file_types option type to list, to accept merging.
|
||||
- Add [avante.nvim] plugin under `vim.assistant.avante-nvim`.
|
||||
|
|
|
|||
|
|
@ -5,15 +5,14 @@
|
|||
}: let
|
||||
inherit (lib.options) mkOption;
|
||||
inherit (lib.types) nullOr attrsOf listOf submodule bool ints str enum;
|
||||
inherit (lib.strings) hasPrefix concatLines;
|
||||
inherit (lib.strings) concatLines;
|
||||
inherit (lib.attrsets) mapAttrsToList;
|
||||
inherit (lib.nvim.dag) entryBetween;
|
||||
inherit (lib.nvim.lua) toLuaObject;
|
||||
inherit (lib.nvim.types) hexColor;
|
||||
|
||||
mkColorOption = target:
|
||||
mkOption {
|
||||
type = nullOr hexColor;
|
||||
type = nullOr str;
|
||||
default = null;
|
||||
example = "#ebdbb2";
|
||||
description = ''
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
inherit (lib.modules) mkIf mkMerge;
|
||||
inherit (lib.options) mkEnableOption mkOption;
|
||||
inherit (lib.lists) isList;
|
||||
inherit (lib.types) bool enum either package listOf str;
|
||||
inherit (lib.types) bool enum either package listOf str nullOr;
|
||||
inherit (lib.nvim.lua) expToLua toLuaObject;
|
||||
inherit (lib.nvim.types) diagnostics mkGrammarOption mkPluginSetupOption;
|
||||
inherit (lib.nvim.dag) entryAnywhere;
|
||||
|
|
@ -117,7 +117,18 @@ in {
|
|||
'';
|
||||
};
|
||||
|
||||
setupOpts = mkPluginSetupOption "render-markdown" {};
|
||||
setupOpts = mkPluginSetupOption "render-markdown" {
|
||||
file_types = lib.mkOption {
|
||||
type = nullOr (listOf str);
|
||||
default = null;
|
||||
description = ''
|
||||
List of buffer filetypes to enable this plugin in.
|
||||
|
||||
This will cause the plugin to attach to new buffers who
|
||||
have any of these filetypes.
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -125,7 +125,7 @@
|
|||
end
|
||||
end
|
||||
|
||||
dap.configurations.debugpy = {
|
||||
dap.configurations.python = {
|
||||
{
|
||||
-- The first three options are required by nvim-dap
|
||||
type = 'debugpy'; -- the type here established the link to the adapter definition: `dap.adapters.debugpy`
|
||||
|
|
|
|||
19
modules/plugins/mini/cursorword/config.nix
Normal file
19
modules/plugins/mini/cursorword/config.nix
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
inherit (lib.modules) mkIf;
|
||||
inherit (lib.nvim.dag) entryAnywhere;
|
||||
inherit (lib.nvim.lua) toLuaObject;
|
||||
|
||||
cfg = config.vim.mini.cursorword;
|
||||
in {
|
||||
vim = mkIf cfg.enable {
|
||||
startPlugins = ["mini-cursorword"];
|
||||
|
||||
pluginRC.mini-ai = entryAnywhere ''
|
||||
require("mini.cursorword").setup(${toLuaObject cfg.setupOpts})
|
||||
'';
|
||||
};
|
||||
}
|
||||
9
modules/plugins/mini/cursorword/cursorword.nix
Normal file
9
modules/plugins/mini/cursorword/cursorword.nix
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
{lib, ...}: let
|
||||
inherit (lib.options) mkEnableOption;
|
||||
inherit (lib.nvim.types) mkPluginSetupOption;
|
||||
in {
|
||||
options.vim.mini.cursorword = {
|
||||
enable = mkEnableOption "mini.cursorword";
|
||||
setupOpts = mkPluginSetupOption "mini.cursorword" {};
|
||||
};
|
||||
}
|
||||
6
modules/plugins/mini/cursorword/default.nix
Normal file
6
modules/plugins/mini/cursorword/default.nix
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
imports = [
|
||||
./cursorword.nix
|
||||
./config.nix
|
||||
];
|
||||
}
|
||||
|
|
@ -11,6 +11,7 @@
|
|||
./colors
|
||||
./comment
|
||||
./completion
|
||||
./cursorword
|
||||
./diff
|
||||
./doc
|
||||
./extra
|
||||
|
|
|
|||
|
|
@ -18,6 +18,7 @@
|
|||
./oil-nvim
|
||||
./outline
|
||||
./preview
|
||||
./sleuth
|
||||
./snacks-nvim
|
||||
./surround
|
||||
./telescope
|
||||
|
|
|
|||
10
modules/plugins/utility/sleuth/config.nix
Normal file
10
modules/plugins/utility/sleuth/config.nix
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
inherit (lib.modules) mkIf;
|
||||
cfg = config.vim.utility.sleuth;
|
||||
in {
|
||||
vim.startPlugins = mkIf cfg.enable ["vim-sleuth"];
|
||||
}
|
||||
6
modules/plugins/utility/sleuth/default.nix
Normal file
6
modules/plugins/utility/sleuth/default.nix
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
imports = [
|
||||
./config.nix
|
||||
./sleuth.nix
|
||||
];
|
||||
}
|
||||
7
modules/plugins/utility/sleuth/sleuth.nix
Normal file
7
modules/plugins/utility/sleuth/sleuth.nix
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
{lib, ...}: let
|
||||
inherit (lib.options) mkEnableOption;
|
||||
in {
|
||||
options.vim.utility.sleuth.enable = mkEnableOption ''
|
||||
automatically adjusting options such as `shiftwidth` or `expandtab`, using `vim-sleuth`
|
||||
'';
|
||||
}
|
||||
|
|
@ -1033,6 +1033,22 @@
|
|||
"url": "https://github.com/echasnovski/mini.completion/archive/35130cebc63ace7d6e4583f349af8cd3f3141af7.tar.gz",
|
||||
"hash": "0h5z5i62cc780bzw60rbizngvpyl4vk7j858pndyi2g572plz929"
|
||||
},
|
||||
"mini-cursorword": {
|
||||
"type": "GitRelease",
|
||||
"repository": {
|
||||
"type": "GitHub",
|
||||
"owner": "echasnovski",
|
||||
"repo": "mini.cursorword"
|
||||
},
|
||||
"pre_releases": false,
|
||||
"version_upper_bound": null,
|
||||
"release_prefix": null,
|
||||
"submodules": false,
|
||||
"version": "v0.15.0",
|
||||
"revision": "6683f04509c380e3147cca368f90bbdb99641775",
|
||||
"url": "https://api.github.com/repos/echasnovski/mini.cursorword/tarball/v0.15.0",
|
||||
"hash": "0vqr4hkzq13ap6giyyp8asn5g6nnm406piq1a07a5nmkfxiskp9v"
|
||||
},
|
||||
"mini-diff": {
|
||||
"type": "Git",
|
||||
"repository": {
|
||||
|
|
@ -2404,6 +2420,19 @@
|
|||
"url": "https://github.com/tpope/vim-repeat/archive/65846025c15494983dafe5e3b46c8f88ab2e9635.tar.gz",
|
||||
"hash": "0n8sx6s2sbjb21dv9j6y5lyqda9vvxraffg2jz423daamn96dxqv"
|
||||
},
|
||||
"vim-sleuth": {
|
||||
"type": "Git",
|
||||
"repository": {
|
||||
"type": "GitHub",
|
||||
"owner": "tpope",
|
||||
"repo": "vim-sleuth"
|
||||
},
|
||||
"branch": "master",
|
||||
"submodules": false,
|
||||
"revision": "be69bff86754b1aa5adcbb527d7fcd1635a84080",
|
||||
"url": "https://github.com/tpope/vim-sleuth/archive/be69bff86754b1aa5adcbb527d7fcd1635a84080.tar.gz",
|
||||
"hash": "0wqxdjgplf04nq428ialw1w03f8nh5vb629a17vl5gc9gf3zfanq"
|
||||
},
|
||||
"vim-startify": {
|
||||
"type": "Git",
|
||||
"repository": {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue