Giter Club home page Giter Club logo

Comments (5)

denstiny avatar denstiny commented on September 28, 2024 1

好的,我想我知道如何解决这个问题,但是我需要定义某种 .setup 方法来进行设置,以便 tab 仅在行的开头调用 intellitab,并调用 CoC(或其他否则你必须绑定到 Tab) 否则。不过,我只能在下周完成这项工作。

This plugin is a very good, thank you for your help, I'll wait

from intellitab.nvim.

pta2002 avatar pta2002 commented on September 28, 2024

Hey, I think I understand what your issue is, I don't use CoC, but I'll set up an install with it so that I can check it out, I think I know how to fix it. Should just require a small change in config.

from intellitab.nvim.

pta2002 avatar pta2002 commented on September 28, 2024

Okay, I think I know how to solve this, but I'll need to define some sort of .setup method that will set things up so that tab calls intellitab only if it's in the beginning of the line, and calls CoC (or whatever else you had bound to Tab) otherwise. I'll only be able to get this working next week though.

from intellitab.nvim.

pta2002 avatar pta2002 commented on September 28, 2024

Hello.

I'm sorry for being gone for so long, but I was away and didn't have time to work on this.

I think I found a way of making the plugin play along with CoC though!

Change these lines from the CoC config

inoremap <silent><expr> <TAB>
      \ pumvisible() ? "\<C-n>" :
      \ <SID>check_back_space() ? "\<TAB>" :
      \ coc#refresh()
inoremap <expr><S-TAB> pumvisible() ? "\<C-p>" : "\<C-h>"

to this:

inoremap <silent><expr> <TAB>
      \ pumvisible() ? "\<C-n>" :
      \ <SID>check_back_space() ? <CMD>lua require("intellitab").indent()<CR> :
      \ coc#refresh()
inoremap <expr><S-TAB> pumvisible() ? "\<C-p>" : "\<C-h>"

Please let me know if this works so I can put it on the README. If it does not I'll figure something else out!

from intellitab.nvim.

denstiny avatar denstiny commented on September 28, 2024

Finally wait for your update, I try at night, thank you remember!

from intellitab.nvim.

Related Issues (2)

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.