Only use Wakatime on mac

This commit is contained in:
2025-04-15 21:02:09 +01:00
parent eeb4e44367
commit 0940219a08
3 changed files with 28 additions and 205 deletions

View File

@@ -41,8 +41,6 @@ vim.api.nvim_create_autocmd("User", {
end,
})
local fidget_group = vim.api.nvim_create_augroup("CodeCompanionFidgetHooks", { clear = true })
vim.api.nvim_create_autocmd({ "User" }, {
@@ -69,6 +67,24 @@ vim.api.nvim_create_autocmd({ "User" }, {
handle:finish()
end
end,
end
-- augroup modes
-- autocmd!
-- autocmd FocusLost * call feedkeys("\<Esc>") "Go to normal mode when moving away
-- autocmd BufNewFile * call feedkeys("i") "Go to insert mode when starting a new file
-- augroup END
local modes_group = vim.api.nvim_create_augroup('modes', { clear = true })
vim.api.nvim_create_autocmd('FocusLost', {
group = modes_group,
pattern = '*',
command = 'call feedkeys("\\<Esc>")',
})
vim.api.nvim_create_autocmd('BufNewFile', {
group = modes_group,
pattern = '*',
command = 'call feedkeys("i")',
})
require('helpers').edit_cf('a', '/lua/autocmd.lua')