This is a Neovim plugin that tracks your keypresses and displays your APM (actions per minute) in the statusline. Unlike Primeagen's plugin, this one works.
With Packer: add
require('packer').startup(function()
use 'pekikii/apm.nvim'
end)
require('apm').setup()
to your init.lua
and call :PackerInstall
With Lazy:
--- Lazy
{
'pekikii/apm.nvim',
config = function()
require('apm').setup()
end,
}
--- Inside lualine config
local apm = require('apm').get_apm_status
require('lualine').setup {
sections = {
lualine_y = { apm }
}
}