theprimeagen / vim-apm Goto Github PK
View Code? Open in Web Editor NEWVim APM, Actions per minute, is the greatest plugin since vim-slicedbread
Vim APM, Actions per minute, is the greatest plugin since vim-slicedbread
You‘ve changed the output path of the build cmd, but left the run cmd in this line unchanged. The cmd run/live uses the same unchanged path so run might even work but with a different version than expected.
Line 87 in 96d452b
While the current system seems to be using Conventional Commits, I believe this project could be improved greatly if you added more emojis via a system like Gitmoji.
Examples:
It would be funny.
Awesome idea for a plugin. Been able to catch some of your work with it on stream/yt!
Got one encoding error from the plugin and thought I'd file an issue in case it helps.
It has been running seemingly fine without any more errors for several hours except that (nice).
I have not been able to reproduce the error :( but pulled out the message:
Error executing vim.schedule lua callback: Vim:E474: String "<80><fc>^Hh" contains byte that does not start any UTF-8 character
stack traceback:
[C]: in function 'json_encode'
...nvim/lazy/vim-apm/lua/vim-apm/reporter/file-reporter.lua:58: in function 'cb'
.../.local/share/nvim/lazy/vim-apm/lua/vim-apm/interval.lua:10: in function ''
vim/_editor.lua: in function ''
vim/_editor.lua: in function <vim/_editor.lua:0>
Searching through :help on vim-keys vim-codes etc., I haven't been able to figure out which keys make <80><fc>^Hh
.
I know you mentioned something about ASCII and other langugages, so I have tried reproducing the error with the quirky keys on my Norwegian keyboard, in case it was some ASCII thing, but no luck. Vim-apm keeps on running, and seems to process and register these just fine (nice). For reference these are:
æ ø å
ubuntu-20.04
Installed vim-apm master branch on 28-02.2024 using lazy.
Config:
{
"ThePrimeagen/vim-apm",
lazy = false,
config = function()
local apm = require("vim-apm")
apm:setup({})
vim.keymap.set("n", "<leader>apm", function()
apm:toggle_monitor()
end)
end
}
Hope it helps
Keep up the awesome work
CHROOT
There isn't much more to it.
The previous version I had worked, but it had the "too many open files" problem which drove me mad cause I couldn't figure out what it was until it was fixed.
This one just shows this:
My config (from the docs):
local apm = require("vim-apm")
apm:setup({})
vim.keymap.set("n", "<leader>apm", function()
apm:toggle_monitor()
end)
Hi, I have built Neovim from the This PR. I followed the install instructions from the readme file. But I get an error saying Unknown option: kscb
. I'm not sure what am I missing here.
I don't know what this project is. It's not because I write TS in vscode, but I'm sure that helps.
Anyway, I spotted "t" was used for both t
and T
while watching your File Tree YT video.
local t = Motions.make_key("t", any_key)
local T = Motions.make_key("t", any_key)
Ignore if that was intentional. I was just kidding anyway. 😶
How to get it back?
Any way to pin it so that it won't be hidden by my frequent spam of <C-w>o
?
Also I intermittently get flashes of red error text, that go away before I can even glimpse them, how best to capture/debug?
Hi, this looked like a cool plugin so I wanted to give it a try. Unfortunately, I wasn't able to get it up and running right away. Doing a :PlugInstall
, I got:
Error detected while processing ~/dotfiles/nvim/plugged/vim-apm/plugin/vim-apm.vim:
line 22:
E216: No such group or event: WinClosed * :lua require("vim-apm").on_winclose(vim.fn.expand('<afile>'))
Additional Info:
Trying to do :VimApm
anyways gives:
Error detected while processing function VimApm:
line 2:
E5105: Error while calling lua chunk: ....config/nvim/plugged/vim-apm//lua/vim-apm/keystroker.lua:62: attempt to index field 'fn' (a nil value)
Press ENTER or type command to continue
My NVIM version
⇒ nvim --version
NVIM v0.4.4
Build type: Release
LuaJIT 2.0.5
Compilation: /Applications/Xcode-10.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -O2 -DNDEBUG -DMIN_LOG_LEVEL=3 -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wshadow -Wconversion -Wmissing-prototypes -Wimplicit-fallthrough -Wvla -fstack-protector-strong -fno-common -fdiagnostics-color=auto -DINCLUDE_GENERATED_DECLARATIONS -D_GNU_SOURCE -DNVIM_MSGPACK_HAS_FLOAT32 -DNVIM_UNIBI_HAS_VAR_FROM -I/Users/travis/build/neovim/bot-ci/build/neovim/build/config -I/Users/travis/build/neovim/bot-ci/build/neovim/src -I/Users/travis/build/neovim/bot-ci/build/neovim/.deps/usr/include -I/usr/include -I/usr/local/opt/gettext/include -I/Users/travis/build/neovim/bot-ci/build/neovim/build/src/nvim/auto -I/Users/travis/build/neovim/bot-ci/build/neovim/build/include
Compiled by [email protected]
Features: +acl +iconv +tui
See ":help feature-compile"
system vimrc file: "$VIM/sysinit.vim"
fall-back for $VIM: "/share/nvim"
Run :checkhealth for more info
I installed apm
via lazy.nvim
and used the same config
function as you did in the README.md. I tried it on both stable (0.9.5 at the time of opening this issue) and the latest nightly (0.10.0). It just opens up apm window in the top right corner of the editor but it doesn't get updated.
Hi everyone,
I get below error when I try to shutdown the VimApm.
Some information about NeoVIm and my Operating system. The same error is encountered in Ubuntu and MacOS both.
OS: MacOS Catalina 10.15.6 / Ubuntu 20.04
neovim version: 0.5.0-nightly
(installed using brew install neovim --HEAD
command)
ERROR:
Error detected while processing function VimApmShutdown: line 4: E5108: Error executing lua /Users/smitpatel/.vim/plugged/vim-apm/lua/vim-apm/init.lua:40: attempt to call field 'remove_keystroke_callback' (a nil value)
'Press ENTER or type command to continue
Error executing vim.schedule lua callback: /Users/smitpatel/.vim/plugged/vim-apm/lua/vim-apm/init.lua:109: handle 0x7fe96c75a6e0 is already closing
Press ENTER or type command to continue
Error: /Users/smitpatel/.vim/plugged/vim-apm/lua/vim-apm/init.lua:137: attempt to index global 'buckets' (a nil value)
Press ENTER or type command to continue
Error: /Users/smitpatel/.vim/plugged/vim-apm/lua/vim-apm/init.lua:137: attempt to index global 'buckets' (a nil value)
Press ENTER or type command to continue
I saw mention of this plugin on one of your YouTube videos. However I have no idea what it is besides "the best plugin since vim-slicedbread". I can infer it either counts actions per minute or perhaps helps you increase actions per minute... Can you put a one line description of it's intended function in the readme?
hey, i noticed no commits in the last 10 minutes. wondering if this project is dead?
Error detected while processing function VimApm:
line 2:
E5108: Error executing lua vim/_editor.lua:0: Tried to call API function with vim.fn: use vim.api.nvim_win_get_width instead
stack traceback:
[C]: in function 'error'
vim/_editor.lua: in function 'nvim_win_get_width'
...o/.local/share/nvim/plugged/vim-apm/lua/vim-apm/init.lua:59: in function 'on_resize'
...o/.local/share/nvim/plugged/vim-apm/lua/vim-apm/init.lua:92: in function 'apm'
[string ":lua"]:1: in main chunk
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.