phsix / faster.nvim Goto Github PK
View Code? Open in Web Editor NEWA neovim plugin to accelerate j or k moving.
A neovim plugin to accelerate j or k moving.
This would be helpful
faster.nvim dont work in my computer.
I tried rhysd/accelerated-jk, xiyaowong/accelerated-jk.nvim and PHSix/faster.nvim, but none of them work normal.
I tried to just install packer.nvim and faster.nvim. Still dont work.
Keymap already should set success.
Has anyone else had this problem?
env info.
vim env.
❯ vim -v
NVIM v0.6.1
Build type: Release
LuaJIT 2.1.0-beta3
编译者 [email protected]
Features: +acl +iconv +tui
See ":help feature-compile"
系统 vimrc 文件: "$VIM/sysinit.vim"
$VIM 预设值: "/opt/homebrew/Cellar/neovim/0.6.1/share/nvim"
Run :checkhealth for more info
mac env
OS: macOS 12.2.1 21D62 arm64
Kernel: 21.3.0
Shell: zsh 5.8
DE: Aqua
Terminal: tmux
CPU: Apple M1 Pro
GPU: Apple M1 Pro
terminal: alacritty.
vim config
-- ~/.config/nvim/init.lua
-- vim.g.tabris='sirbat'
--
require('plugins')
--
-- print("hello world!")
--
vim.cmd [[set nu]]
--
-- vim.g.tabris1='sirbat'
-- require('init-packer')
print("hello world!")
-- ~/.config/nvim/lua/plugins.lua
local fn = vim.fn
local install_path = fn.stdpath('data')..'/site/pack/packer/start/packer.nvim'
if fn.empty(fn.glob(install_path)) > 0 then
-- packer_bootstrap = fn.system({'git', 'clone', '--depth', '1', 'https://github.com/wbthomason/packer.nvim', install_path})
packer_bootstrap = fn.system({'git', 'clone', '--depth', '1', 'https://codechina.csdn.net/mirrors/wbthomason/packer.nvim.git', install_path}) --csdn加速镜像
end
vim.cmd [[packadd packer.nvim]]
print("packer.nvim return")
return require('packer').startup(function()
use 'wbthomason/packer.nvim'-- Packer can manage itself
use {
"PHSix/faster.nvim",
-- keys = {"j", "k"},
config = function()
print("faster.nvim keymap setting start")
vim.api.nvim_set_keymap("n", "j", "<Plug>(faster_move_gj)", {noremap = false, silent = true})
vim.api.nvim_set_keymap("n", "k", "<Plug>(faster_move_gk)", {noremap = false, silent = true})
vim.api.nvim_set_keymap("v", "j", "<Plug>(faster_vmove_j)", {noremap = false, silent = true})
vim.api.nvim_set_keymap("v", "k", "<Plug>(faster_vmove_k)", {noremap = false, silent = true})
-- vim.api.nvim_set_keymap("v", "j", "<Plug>(faster_move_gj)", {noremap = false})
-- vim.api.nvim_set_keymap("v", "k", "<Plug>(faster_move_gk)", {noremap = false, silent = true})
print("faster.nvim keymap setting end")
end
}
if packer_bootstrap then
require('packer').sync()
end
require('packer').sync() -- force sync. - for debug.
end)
(Sorry for my pool english.)
faster.nvim can support visual mode?
j and k are often mapped to gj and gk in set wrap
.
It would be great to support for gj and gk. Like:
vim.api.nvim_set_keymap('n', 'j', '<Plug>(faster_move_gj)', {noremap=false, silent=true})
vim.api.nvim_set_keymap('n', 'k', '<Plug>(faster_move_gk)', {noremap=false, silent=true})
The origin issue link is rhysd/accelerated-jk#6.
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.