Checks for .settings files

- Checks for missing files and creates them
- More efficient handling of those settings
This commit is contained in:
2024-07-18 14:14:08 -04:00
parent 47825ea80b
commit c1dd778e47
7 changed files with 84 additions and 52 deletions
+5 -7
View File
@@ -14,13 +14,11 @@ return {
{
"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
if
vim.fn.readfile(vim.fn.stdpath("config") .. "/.wakatime")[1]
== "true"
then
return true
end
end,
},