mirror of
https://github.com/NotAShelf/nvf.git
synced 2024-11-23 05:40:44 +00:00
feat: vim-wakatime
This commit is contained in:
parent
7eaa559996
commit
cb4ce03b35
8 changed files with 54 additions and 0 deletions
|
@ -151,6 +151,7 @@ inputs: let
|
||||||
|
|
||||||
vim.utility = {
|
vim.utility = {
|
||||||
colorizer.enable = true;
|
colorizer.enable = true;
|
||||||
|
vim-wakatime.enable = true;
|
||||||
icon-picker.enable = true;
|
icon-picker.enable = true;
|
||||||
diffview-nvim.enable = true;
|
diffview-nvim.enable = true;
|
||||||
motion = {
|
motion = {
|
||||||
|
|
17
flake.lock
17
flake.lock
|
@ -1359,6 +1359,7 @@
|
||||||
"vim-repeat": "vim-repeat",
|
"vim-repeat": "vim-repeat",
|
||||||
"vim-startify": "vim-startify",
|
"vim-startify": "vim-startify",
|
||||||
"vim-vsnip": "vim-vsnip",
|
"vim-vsnip": "vim-vsnip",
|
||||||
|
"vim-wakatime": "vim-wakatime",
|
||||||
"which-key": "which-key",
|
"which-key": "which-key",
|
||||||
"zig": "zig"
|
"zig": "zig"
|
||||||
}
|
}
|
||||||
|
@ -1732,6 +1733,22 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"vim-wakatime": {
|
||||||
|
"flake": false,
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1683640992,
|
||||||
|
"narHash": "sha256-DIj+ps5XfpFHwBJ42EBw5ayHfdzCc+bDvpyYm/p+9Ec=",
|
||||||
|
"owner": "wakatime",
|
||||||
|
"repo": "vim-wakatime",
|
||||||
|
"rev": "02be9238319937e04afea73fd0fc7da5413ee041",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "wakatime",
|
||||||
|
"repo": "vim-wakatime",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"vowel-src": {
|
"vowel-src": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
|
|
|
@ -373,6 +373,11 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
# Utilities
|
# Utilities
|
||||||
|
vim-wakatime = {
|
||||||
|
url = "github:wakatime/vim-wakatime";
|
||||||
|
flake = false;
|
||||||
|
};
|
||||||
|
|
||||||
colorizer = {
|
colorizer = {
|
||||||
url = "github:uga-rosa/ccc.nvim";
|
url = "github:uga-rosa/ccc.nvim";
|
||||||
flake = false;
|
flake = false;
|
||||||
|
|
|
@ -81,6 +81,7 @@ with lib; let
|
||||||
"project-nvim"
|
"project-nvim"
|
||||||
"elixir-ls"
|
"elixir-ls"
|
||||||
"elixir-tools"
|
"elixir-tools"
|
||||||
|
"vim-wakatime"
|
||||||
];
|
];
|
||||||
# You can either use the name of the plugin or a package.
|
# You can either use the name of the plugin or a package.
|
||||||
pluginsType = with types;
|
pluginsType = with types;
|
||||||
|
|
|
@ -8,5 +8,6 @@ _: {
|
||||||
./icon-picker
|
./icon-picker
|
||||||
./telescope
|
./telescope
|
||||||
./diffview
|
./diffview
|
||||||
|
./wakatime
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
15
modules/utility/wakatime/config.nix
Normal file
15
modules/utility/wakatime/config.nix
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
with lib;
|
||||||
|
with builtins; let
|
||||||
|
cfg = config.vim.utility.vim-wakatime;
|
||||||
|
in {
|
||||||
|
config = mkIf (cfg.enable) {
|
||||||
|
vim.startPlugins = [
|
||||||
|
"vim-wakatime"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
6
modules/utility/wakatime/default.nix
Normal file
6
modules/utility/wakatime/default.nix
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
_: {
|
||||||
|
imports = [
|
||||||
|
./config.nix
|
||||||
|
./vim-wakatime.nix
|
||||||
|
];
|
||||||
|
}
|
8
modules/utility/wakatime/vim-wakatime.nix
Normal file
8
modules/utility/wakatime/vim-wakatime.nix
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
{lib, ...}:
|
||||||
|
with lib;
|
||||||
|
with builtins; {
|
||||||
|
options.vim.utility.vim-wakatime = {
|
||||||
|
enable = mkEnableOption "Enable vim-wakatime";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue