mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-09-06 10:21:31 +00:00
utility/sleuth: init
This commit is contained in:
parent
43421d5612
commit
8f73019907
6 changed files with 40 additions and 0 deletions
|
@ -337,10 +337,13 @@
|
||||||
|
|
||||||
[Noah765](https://github.com/Noah765):
|
[Noah765](https://github.com/Noah765):
|
||||||
|
|
||||||
|
[vim-sleuth]: https://github.com/tpope/vim-sleuth
|
||||||
|
|
||||||
- Add missing `flutter-tools.nvim` dependency `plenary.nvim`.
|
- Add missing `flutter-tools.nvim` dependency `plenary.nvim`.
|
||||||
- Add necessary dependency of `flutter-tools.nvim` on lsp.
|
- Add necessary dependency of `flutter-tools.nvim` on lsp.
|
||||||
- Add the `vim.languages.dart.flutter-tools.flutterPackage` option.
|
- Add the `vim.languages.dart.flutter-tools.flutterPackage` option.
|
||||||
- Fix the type of the `highlight` color options.
|
- Fix the type of the `highlight` color options.
|
||||||
|
- Add [vim-sleuth] plugin under `vim.utility.sleuth`.
|
||||||
|
|
||||||
[howird](https://github.com/howird):
|
[howird](https://github.com/howird):
|
||||||
|
|
||||||
|
|
|
@ -18,6 +18,7 @@
|
||||||
./oil-nvim
|
./oil-nvim
|
||||||
./outline
|
./outline
|
||||||
./preview
|
./preview
|
||||||
|
./sleuth
|
||||||
./snacks-nvim
|
./snacks-nvim
|
||||||
./surround
|
./surround
|
||||||
./telescope
|
./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`
|
||||||
|
'';
|
||||||
|
}
|
|
@ -2407,6 +2407,19 @@
|
||||||
"url": "https://github.com/tpope/vim-repeat/archive/65846025c15494983dafe5e3b46c8f88ab2e9635.tar.gz",
|
"url": "https://github.com/tpope/vim-repeat/archive/65846025c15494983dafe5e3b46c8f88ab2e9635.tar.gz",
|
||||||
"hash": "0n8sx6s2sbjb21dv9j6y5lyqda9vvxraffg2jz423daamn96dxqv"
|
"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": {
|
"vim-startify": {
|
||||||
"type": "Git",
|
"type": "Git",
|
||||||
"repository": {
|
"repository": {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue