Git Product home page Git Product logo

vim-apm's Introduction

Vim APM

This is still a very alpha application but should be a good time to use.

Please file issues for

  • anytime you get an error
  • absolutely not working
  • missing motions or incorrect motions

Getting Started

Here is my Lazy config function.

local apm = require("vim-apm")

apm:setup({})
vim.keymap.set("n", "<leader>apm", function() apm:toggle_monitor() end)

If you don't know how to install plugins, this is probably not for you in this moment

Why Go?

  • i did a poll
  • I want to use go templates and htmx and live that simple life style
  • I want to use charm cli
  • I like go more than typescript
  • I like go more than javascript
  • I like go more than elixir (ok i haven't tried elixir)
  • I don't ackshually know how to program rust

vim-apm's People

Contributors

theprimeagen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

vim-apm's Issues

Error while shutting down Vim Apm

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

Error: String "<80><fc>^Hh" contains byte that does not start any UTF-8 character

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.

Keyboard is Norwegian!!!

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:

æ ø å

System

  • WSL on Win11 ubuntu-20.04
  • neovim v0.9.5
  • (tmux v3.3a)
  • (zsh v5.8)

Setup

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

💄 Add more emojis to commit messages

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:

Advantages

It would be funny.

Disadvantages

All stats display 0

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:

image

My config (from the docs):

local apm = require("vim-apm")

apm:setup({})
vim.keymap.set("n", "<leader>apm", function()
	apm:toggle_monitor()
end)

Unknown option: kscb

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.

absolutely not working

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.

ok but what is it?

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?

Error message when installing

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

Build output path not matching

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.

/tmp/bin/${BINARY_NAME}

Error when running :VimApm

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

project dead?

hey, i noticed no commits in the last 10 minutes. wondering if this project is dead?

<C-w>o closes the overlay

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.