nvim: Add tmux completion source for completion-nvim

This commit is contained in:
Sanchayan Maity 2020-11-21 11:51:39 +05:30
parent 9a2f273a7d
commit b861963f9a
2 changed files with 5 additions and 4 deletions

View file

@ -8,26 +8,26 @@ vim.g.completion_matching_strategy_list = { 'exact', 'substring' }
vim.g.completion_chain_complete_list = {
c = {
{ complete_items = { 'buffers' } },
{ complete_items = { 'buffers', 'tmux' } },
{ mode = { 'tags' } },
{ mode = { 'keyn' } },
{ mode = { '<c-p>' } },
{ mode = { '<c-n>' } }
},
haskell = {
{ complete_items = { 'buffers', 'lsp' } },
{ complete_items = { 'buffers', 'lsp', 'tmux' } },
{ mode = { 'keyn' } },
{ mode = { '<c-p>' } },
{ mode = { '<c-n>' } }
},
rust = {
{ complete_items = { 'buffers', 'lsp' } },
{ complete_items = { 'buffers', 'lsp', 'tmux' } },
{ mode = { 'keyn' } },
{ mode = { '<c-p>' } },
{ mode = { '<c-n>' } }
},
default = {
{ complete_items = { 'buffers' } },
{ complete_items = { 'buffers', 'tmux' } },
{ mode = { 'keyn' } },
{ mode = { '<c-p>' } },
{ mode = { '<c-n>' } }

View file

@ -37,6 +37,7 @@ local init = function ()
config = "require('modules.completion')"
}
use 'steelsojka/completion-buffers'
use 'albertoCaroM/completion-tmux'
-- For tmux
use 'tmux-plugins/vim-tmux-focus-events'
-- Git support