Coder Social home page Coder Social logo

ddu-kind-word's Introduction

ddu-kind-word's People

Contributors

norisio avatar shougo avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

norisio miya10kei

ddu-kind-word's Issues

cursor moves to head of line after append action

what I want

I want cursor to keep position when execute append action, but cursor moves to head of line.

how to reproduce

first, put below codes as init.vim, and modify rtp match as your file placement.

let s:cache_dir = expand("~/.cache/nvim/dein")
let s:denops = s:cache_dir . "/repos/github.com/vim-denops/denops.vim"
let s:ddu = s:cache_dir . "/repos/github.com/Shougo/ddu.vim"
let s:ddu_kind_word = s:cache_dir . "/repos/github.com/Shougo/ddu-kind-word"
let s:ddu_emoji = s:cache_dir . "/repos/github.com/4513ECHO/ddu-source-emoji"
let s:ddu_ui_ff = s:cache_dir . "/repos/github.com/Shougo/ddu-ui-ff"

execute 'set runtimepath+=' . s:denops
execute 'set runtimepath+=' . s:ddu
execute 'set runtimepath+=' . s:ddu_kind_word
execute 'set runtimepath+=' . s:ddu_emoji
execute 'set runtimepath+=' . s:ddu_ui_ff

inoremap <C-x><C-e> <Cmd>call ddu#start(#{ sources: [#{ name: "emoji", options: #{ defaultAction: "append" }}]})<CR>
nnoremap <CR> <Cmd>call ddu#ui#ff#do_action("itemAction")<CR>
call ddu#custom#patch_global("ui", "ff")

then, type some text in nvim, and <C-x><C-e><CR> at the middle of line.
you will see the cursor at head of line

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.