diff --git a/nvim/.config/nvim/init.vim b/nvim/.config/nvim/init.vim index abca6fe..deca353 100644 --- a/nvim/.config/nvim/init.vim +++ b/nvim/.config/nvim/init.vim @@ -14,6 +14,7 @@ Plug 'axelf4/vim-strip-trailing-whitespace' Plug 'thaerkh/vim-workspace' " For autocompletion Plug 'nvim-lua/completion-nvim' +Plug 'steelsojka/completion-buffers' " For tmux Plug 'tmux-plugins/vim-tmux-focus-events' Plug 'wellle/tmux-complete.vim' diff --git a/nvim/.config/nvim/plugin_settings.vim b/nvim/.config/nvim/plugin_settings.vim index a02ea58..7f4496b 100644 --- a/nvim/.config/nvim/plugin_settings.vim +++ b/nvim/.config/nvim/plugin_settings.vim @@ -65,6 +65,7 @@ let g:completion_enable_auto_popup = 1 let g:completion_auto_change_source = 1 let g:completion_chain_complete_list = { \ 'c': [ + \ {'complete_items': ['buffers']}, \ {'mode': 'keyn'}, \ {'mode': 'tags'}, \ {'mode': ''}, @@ -72,21 +73,25 @@ let g:completion_chain_complete_list = { \], \ 'haskell': [ \ {'complete_items': ['lsp']}, + \ {'complete_items': ['buffers']}, \ {'mode': 'keyn'}, \ {'mode': ''}, \ {'mode': ''}, \], \ 'rust': [ \ {'complete_items': ['lsp']}, + \ {'complete_items': ['buffers']}, \ {'mode': 'keyn'} \], \ 'purescript': [ \ {'complete_items': ['lsp']}, + \ {'complete_items': ['buffers']}, \ {'mode': 'keyn'}, \ {'mode': ''}, \ {'mode': ''} \], \ 'default': [ + \ {'complete_items': ['buffers']}, \ {'mode': 'keyn'}, \ {'mode': ''}, \ {'mode': ''},