Code Monkey home page Code Monkey logo

Comments (4)

AnthonyUtt avatar AnthonyUtt commented on July 21, 2024 2

I don't have a solution for your second or third points, but you can add more bindings for codeium-* using the following snippet:

imap <C-d> <Plug>(codeium-dismiss)
imap <M-<> <Plug>(codeium-previous)
imap <M->> <Plug>(codeium-next)

Just replace the <C-d>|<M-<>|<M->> with whatever you want that binding to be. (Note: I am using vim-plug, this may differ for other plugin managers.)

from codeium.vim.

ragu-manjegowda avatar ragu-manjegowda commented on July 21, 2024 1

provide the respective commands for codeium-dismiss, codeium-next and codeium-previous?

Looks like it's already there, just that README needs update,

codeium#Clear
codeium#CycleCompletions(1)
codeium#CycleCompletions(-1)
    vim.keymap.set('i', '<C-l>', function()
        return vim.fn['codeium#Accept']()
    end, { expr = true })

disable auto completion (per configuration), i.e. only show suggestions when a user triggers codeium-next/codeium-previous?
disable the default keymaps (per configuration)?

In addition to this, I would like to have ability to accept suggestions incrementally. May be something like we have in terminal, one "^[F" forward-word at a time.

Edit:

In addition to this, I would like to have ability to accept suggestions incrementally. May be something like we have in terminal, one "^[F" forward-word at a time.

There is already an open issue for this.

from codeium.vim.

David-Kunz avatar David-Kunz commented on July 21, 2024

Thank you @AnthonyUtt and @ragu-manjegowda , I can confirm

vim.keymap.set('i', '<c-;>', function() return vim.fn['codeium#CycleCompletions'](1) end, { expr = true })
vim.keymap.set('i', '<c-,>', function() return vim.fn['codeium#CycleCompletions'](-1) end, { expr = true })
vim.keymap.set('i', '<c-x>', function() return vim.fn['codeium#Clear']() end, { expr = true })
vim.keymap.set('i', '<c-cr>', function() return vim.fn['codeium#Accept']() end, { expr = true })

works! (Even though cycling often gives the same result, making it effectively a no-op.)

from codeium.vim.

Minion3665 avatar Minion3665 commented on July 21, 2024

disable the default keymaps (per configuration)?

This is very important to me; I have a heavily overloaded tab key and having codeium clobber it is a dealbreaker- I'm working on updating my configuration so codeium plays a little nicer with everything else but until then I'll have to keep it disabled (#13 would also solve this)

from codeium.vim.

Related Issues (20)

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.