feat: vim-wakatime

This commit is contained in:
NotAShelf 2023-05-10 14:41:17 +03:00
parent b015c0aa0e
commit aef6af206b
No known key found for this signature in database
GPG key ID: F0D14CCB5ED5AA22
8 changed files with 54 additions and 0 deletions

View file

@ -158,6 +158,7 @@ inputs: let
vim.utility = {
colorizer.enable = true;
vim-wakatime.enable = true;
icon-picker.enable = true;
diffview-nvim.enable = true;
motion = {

View file

@ -1393,6 +1393,7 @@
"vim-repeat": "vim-repeat",
"vim-startify": "vim-startify",
"vim-vsnip": "vim-vsnip",
"vim-wakatime": "vim-wakatime",
"which-key": "which-key",
"zig": "zig"
}
@ -1766,6 +1767,22 @@
"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": {
"flake": false,
"locked": {

View file

@ -384,6 +384,11 @@
};
# Utilities
vim-wakatime = {
url = "github:wakatime/vim-wakatime";
flake = false;
};
colorizer = {
url = "github:uga-rosa/ccc.nvim";
flake = false;

View file

@ -83,6 +83,7 @@ with lib; let
"elixir-tools"
"nvim-dap"
"nvim-dap-ui"
"vim-wakatime"
];
# You can either use the name of the plugin or a package.
pluginsType = with types;

View file

@ -8,5 +8,6 @@ _: {
./icon-picker
./telescope
./diffview
./wakatime
];
}

View 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"
];
};
}

View file

@ -0,0 +1,6 @@
_: {
imports = [
./config.nix
./vim-wakatime.nix
];
}

View file

@ -0,0 +1,8 @@
{lib, ...}:
with lib;
with builtins; {
options.vim.utility.vim-wakatime = {
enable = mkEnableOption "Enable vim-wakatime";
};
}