Code Monkey home page Code Monkey logo

Comments (4)

lcrockett avatar lcrockett commented on May 29, 2024 1

I found out how to reproduce it; i was missing the tmux = true; within the source block, within the require'compe'.setup block.

I figured i'll add it later after verifying the plugin works, but I guess this works fine too. Cheers on your prompt response and help.

from cmp-tmux.

andersevenrud avatar andersevenrud commented on May 29, 2024 1

Aha! I've pushed an update that makes sure it does not throw an exception in this case. Cheers!

from cmp-tmux.

andersevenrud avatar andersevenrud commented on May 29, 2024

Can you share your compe config ?

from cmp-tmux.

andersevenrud avatar andersevenrud commented on May 29, 2024

Here is a minimal example config that I created using packer. Can't seem to reproduce it though 🤔

require('packer').startup(function()
        use { 'andersevenrud/compe-tmux', requires = { 'hrsh7th/nvim-compe' } }
end)

require'compe'.setup {
  enabled = true;
  autocomplete = true;
  debug = false;
  min_length = 1;
  preselect = 'enable';
  throttle_time = 80;
  source_timeout = 200;
  incomplete_delay = 400;
  max_abbr_width = 100;
  max_kind_width = 100;
  max_menu_width = 100;
  documentation = true;

  source = {
    path = true;
    buffer = true;
    calc = true;
    nvim_lsp = true;
    nvim_lua = true;
    vsnip = false;
    ultisnips = false;
    tmux = true;
  };
}

vim.cmd[[inoremap <silent><expr> <C-Space> compe#complete()]]
vim.cmd[[inoremap <silent><expr> <CR>      compe#confirm('<CR>')]]
vim.cmd[[inoremap <silent><expr> <C-e>     compe#close('<C-e>')]]
vim.cmd[[inoremap <silent><expr> <C-f>     compe#scroll({ 'delta': +4 })]]
vim.cmd[[inoremap <silent><expr> <C-d>     compe#scroll({ 'delta': -4 })]]

vim.o.completeopt = "menuone,noselect"

from cmp-tmux.

Related Issues (17)

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.