From e70547407b8cd247b0cfe4258c75940f2bdb9c89 Mon Sep 17 00:00:00 2001 From: rootiest Date: Wed, 17 Jul 2024 10:46:23 -0400 Subject: [PATCH] =?UTF-8?q?=E2=8F=B1=EF=B8=8F=20Add=20WakaTime?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Allows monitoring your coding on a dashboard - Can be disabled by setting the value in .wakafile to 'false' --- .wakatime | 1 + lua/plugins/util.lua | 13 +++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 .wakatime diff --git a/.wakatime b/.wakatime new file mode 100644 index 0000000..27ba77d --- /dev/null +++ b/.wakatime @@ -0,0 +1 @@ +true diff --git a/lua/plugins/util.lua b/lua/plugins/util.lua index c088112..ca747b9 100644 --- a/lua/plugins/util.lua +++ b/lua/plugins/util.lua @@ -11,6 +11,19 @@ return { { import = "lazyvim.plugins.extras.util.dot" }, { import = "lazyvim.plugins.extras.util.gitui" }, { import = "lazyvim.plugins.extras.util.octo" }, + { + "wakatime/vim-wakatime", + cond = function() + if vim.fn.filereadable(vim.fn.stdpath("config") .. "/.wakatime") == 1 then + if + vim.fn.readfile(vim.fn.stdpath("config") .. "/.wakatime")[1] + == "true" + then + return true + end + end + end, + }, { "chrishrb/gx.nvim", cmd = { "Browse" },