Giter Site home page Giter Site logo

faster.nvim's People

Contributors

phsix 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

Watchers

 avatar  avatar

faster.nvim's Issues

faster.nvim dont work.

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.

image

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.)

[Feature Request] Add support for gj and gk

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})

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.